Skip to content

Kathara.parser.netkit.ExtParser

Tommaso Caiazzi edited this page Jul 21, 2023 · 1 revision

module Kathara.parser.netkit.ExtParser


class ExtParser

Class responsible for parsing lab.ext file.


method ExtParser.parse

parse(
    path: str
) → Optional[Dict[str, List[Kathara.model.ExternalLink.ExternalLink]]]

Parse the lab.ext and return a Dict. Keys are name of collision domain and values are List of ExternalLink attached to that interface.

Args:

  • path (str): The path to lab.ext file.

Returns:

  • Optional[Dict[str, List[ExternalLink]]]: Keys are name of collision domain and values are List of ExternalLink attached to that interface.

Raises:

  • IOError: If lab.ext file cannot be opened.
  • ValueError: If the VLAN ID is not allowed.
  • SyntaxError: If lab.ext file is malformed.

This file was automatically generated via lazydocs.

Clone this wiki locally