Kathara.parser.netkit.ExtParser - KatharaFramework/Kathara GitHub Wiki
Class responsible for parsing lab.ext file.
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.