controllers.odl_lithium_sr2_pb package

Submodules

controllers.odl_lithium_sr2_pb.change_persistence module

Handler disabling the percistence mode in the configuration of the controller.

controllers.odl_lithium_sr2_pb.change_persistence.change_persistence()[source]

Change the persistence attribute to false. The controller will not backup datastore on the disk.

controllers.odl_lithium_sr2_pb.change_stats_period module

controllers.odl_lithium_sr2_pb.flowmods_configure module

controllers.odl_lithium_sr2_pb.get_flows module

This handler returns the number of installed flows of a topology, connected to the controller. This information is extracted from controller’s operational datastore, using RESTCONF.

controllers.odl_lithium_sr2_pb.get_flows.get_flow_stats(ip, port, username, password)[source]

Collects and returns data about installed flows for the topology nodes

Parameters:
  • ip (str) – controller IP Address
  • port (int) – controller restconf port number
  • username (str) – username for restconf authorization
  • password (str) – password for restconf authorization
Returns:

the number of installed flows in the topology nodes or a negative number in a negative case

Return type:

int

controllers.odl_lithium_sr2_pb.get_flows.get_oper_flows()[source]

Query number of flows registered in ODL operational DS

Returns:number of flows found, 0 if none exists and -1 in case of error.
Return type:int

controllers.odl_lithium_sr2_pb.get_hosts module

This handler returns the number of hosts of a topology, connected to the controller. This information is extracted from controller’s operational datastore, using RESTCONF.

controllers.odl_lithium_sr2_pb.get_hosts.get_oper_hosts()[source]

Query number of hosts registered in ODL operational DS

Returns:number of hosts found, 0 if none exists and -1 in case of error.
Return type:int

controllers.odl_lithium_sr2_pb.get_switches module

This handler returns the number of switches of a topology, connected to the controller. This information is extracted from controller’s operational datastore, using RESTCONF.

controllers.odl_lithium_sr2_pb.get_switches.get_oper_switches()[source]

Query number of switches registered in ODL operational DS

Returns:number of switches found, 0 if none exists and -1 in case of error.
Return type:int

controllers.odl_lithium_sr2_pb.xml_utils module

Module contents