Package onep :: Package topology :: Module NodeConnector :: Class NodeConnector
[frames] | no frames]

Class NodeConnector

NodeConnector class represents the logical/physical interfaces forming an edge in a topology graph. NodeConnectorc contains identity of a network interface including interface name, IP address, etc. depending on how the interface was discovered. If the interface is discovered through CDP(physical) then it is represented by a CDP instantiated node connector object. If the interface is discovered through OSPF or any other L3 routing protocol, then it is a OSPF instantiated node connector object and contains only IP address.

Instance Methods
 
equals(self, obj)
Compare two NodeConnector for equality.
str
__str__(self)
Returns a string representation of the NodeConnector object.
Class Variables
  NodeConnectorType = enum('ONEP_CDP_CONNECTOR', 'ONEP_INVALID_C...
  name = property(_get_name, None, _doc)
  node = property(_get_node, None, _doc)
  address_list = property(_get_address_list, None, _doc)
  type = property(_get_type, None, _doc)
Method Details

equals(self, obj)

 

Compare two NodeConnector for equality. This method returns true if the two NodeConnector are equal and the same. The connectors are equal only when the nodes they are housed in are also equal.

Parameters:
  • obj (Object) - The other NodeConnector object to compare with.
Returns:
returns true if the two NodeConnector are the same

__str__(self)
(Informal representation operator)

 

Returns a string representation of the NodeConnector object.

Returns: str
string representation of the object

Class Variable Details

NodeConnectorType

Value:
enum('ONEP_CDP_CONNECTOR', 'ONEP_INVALID_CONNECTOR_TYPE')