Cisco_IOS_Model

class CiscoIOSModel(cli_connection=None, DEBUG=False)

Bases: nuaal.Models.BaseModels.DeviceBaseModel

High-level abstraction model for Cisco IOS devices.

Parameters:
  • cli_connection – Instance of Cisco_IOS_Cli connection object.
  • DEBUG (bool) – Enables/disables debugging output.
_interface_update()

Internal function for retrieving needed data to build complete interface representation.

Returns:None
_map_interface(interface)

Internal function for changing the format of interface dictionary representation.

Parameters:interface (dict) – Dictionary representation of interface in a format provided by connection object’s get_interfaces() function.
Returns:Dictionary representation interface in common format.
get_interfaces()

Retrieves list of all interfaces in common format.

Returns:List of dictionaries.
get_inventory()

Retrieves list of all installed HW parts on device in common format.

Returns:List of dictionaries.
get_l2_interfaces()

Retrieves list of L2 (switched) interfaces in common format.

Returns:List of dictionaries.
get_l3_interfaces()

Retrieves list of L3 (routed) interfaces in common format.

Returns:List of dictionaries.
get_vlans()

Retrieves list of all configured VLANs on device in common format.

Returns:List of dictionaries.