data.interface.json package¶
Submodules¶
data.interface.json.interface_v6 module¶
Manages the v6 interface schema
-
class
data.interface.json.interface_v6.
InterfaceV6
(interface=None, do_validate=False)¶ Bases:
object
Represents a v6 interface JSON
-
get_dict
()¶ Returns the internal dictionary
Returns: The internal dictionary Return type: dict
-
get_interface
()¶ Returns the interface represented by this JSON
Returns: The interface Return type: data.interface.interface.Interface
:
-
-
data.interface.json.interface_v6.
convert_interface_to_v6_json
(interface)¶ Returns the v6 interface JSON for the given interface
Parameters: interface ( data.interface.interface.Interface
) – The interfaceReturns: The v6 interface JSON Return type: data.interface.json.interface_v6.InterfaceV6