Package Products :: Package ZenModel :: Module IpRouteEntry :: Class IpRouteEntry |
[hide private]
[frames] | no frames]

# Class IpRouteEntry

source code

                     object --+
                              |
              Lockable.Lockable --+
                                  |
    DeviceComponent.DeviceComponent --+
                                      |
        ManagedEntity.ManagedEntity --+
                                      |
                OSComponent.OSComponent --+
                                          |
                                         IpRouteEntry

IpRouteEntry object

Instance Methods | [hide private]
__getattr__(self, name) Allow access to getNextHopIp() though the nexthopip attribute | source code
getNextHopDeviceLink(self) Figure out which hop to return and if it's a relation build link | source code
getNextHopIpLink(self) Return an <a> link to our next hop ip. | source code
getNextHopIp(self) Return our next hop ip (as string) if stored as object or locally. | source code
getNextHopDevice(self) Return the device to which this route points. | source code
getInterfaceName(self) Return the interface name for this route as a string. | source code
setNextHopIp(self, nextHopIp) If the nexthop is a 127. | source code
matchTarget(self, ip) Does this route target match the ip passed. | source code
setTarget(self, netip) Set this route target netip in the form 10.0.0.0/24. | source code
getTarget(self) Return the route target ie 0.0.0.0/0. | source code
getTargetIp(self) Return the target network Ip ie: 10.2.1.0 | source code
getTargetLink(self) Return an <a> link to our target network. | source code
setInterfaceIndex(self, ifindex) Set the interface relationship to the interface specified by the given index. | source code
getInterfaceIndex(self) Return the index of the associated interface or None if no interface is found. | source code
setInterfaceName(self, intname) Set the interface relationship to the interface specified by the given name. | source code
getInterfaceIp(self) Retrieve ip of the associated interface | source code
Inherited from `OSComponent.OSComponent`: `device`, `getPrettyLink`, `isUserCreated`, `manage_deleteComponent`, `manage_updateComponent`, `setUserCreateFlag` Inherited from `DeviceComponent.DeviceComponent`: `filterAutomaticCreation`, `getAqProperty`, `getClassObject`, `getCollectors`, `getIconPath`, `getInstDescription`, `getManageIp`, `getNagiosTemplate`, `getParentDeviceName`, `getParentDeviceTitle`, `getParentDeviceUrl`, `getRRDContextData`, `getStatus`, `getStatusString`, `getSubComponentsNoIndexGen`, `hostname`, `monitored`, `name`, `setAqProperty` Inherited from `Lockable.Lockable`: `getNextLockableParent`, `isLockedFromDeletion`, `isLockedFromUpdates`, `isUnlocked`, `lockFromDeletion`, `lockFromUpdates`, `lockStatus`, `lockWarning`, `sendEventWhenBlocked`, `setSendEventWhenBlockedFlag`, `unlock`, `unsetSendEventWhenBlockedFlag`

Class Variables | [hide private]
| meta_type = `'IpRouteEntry'`
| monitor = `False`
| _nexthop = `""`
| _target = `""`
| _targetobj = `None`
| routetype = `""`
| routeproto = `""`
| routemask = `0`
| routeage = `0`
| metric1 = `0`
| metric2 = `0`
| metric3 = `0`
| metric4 = `0`
| metric5 = `0`
| _ifindex = `None`
| _ifname = `None`
| _properties = `{'id': 'routemask', 'type': 'string', 'mode': ''`...``
| _relations = `OSComponent._relations+(("os", ToOne(ToManyCont, `...``
| security = `ClassSecurityInfo()`
| ipcheck = `re.compile(r'^127\.|^0\.0\.|^169\.254\.|^224\.|^::1$`...``
Inherited from `OSComponent.OSComponent`: `isUserCreatedFlag` Inherited from `DeviceComponent.DeviceComponent`: `__pychecker__`, `collectors`, `default_catalog`, `event_key`, `perfmonInstance` Inherited from `Lockable.Lockable`: `modelerLock`, `sendEventWhenBlockedFlag`

Method Details | [hide private]

### getInterfaceName(self) | source code
Return the interface name for this route as a string. If no interface is found return 'No Interface'.

### setNextHopIp(self, nextHopIp) | source code
If the nexthop is a 127. or 0. address store locally else link to it in the network hierarchy

### setInterfaceIndex(self, ifindex) | source code
Set the interface relationship to the interface specified by the given index. See also setInterfaceName()

### setInterfaceName(self, intname) | source code
Set the interface relationship to the interface specified by the given name. See also setInterfaceIndex()

Class Variable Details | [hide private]

  ### _properties Value:
      {'id': 'routemask', 'type': 'string', 'mode': ''}, {'id': 'nexthopip',
       'type': 'string', 'mode': '', 'setter': 'setNextHopIp'}, {'id': 'rout
      eproto', 'type': 'string', 'mode': ''}, {'id': 'routeage', 'type': 'st
      ring', 'mode': ''}, {'id': 'routetype', 'type': 'string', 'mode': ''},
       {'id': 'metric1', 'type': 'int', 'mode': ''}, {'id': 'metric2', 'type
      ': 'int', 'mode': ''}, {'id': 'metric3', 'type': 'int', 'mode': ''}, {
      'id': 'metric4', 'type': 'int', 'mode': ''}, {'id': 'metric5', 'type':
       'int', 'mode': ''},

  ### _relations Value:
      OSComponent._relations+(("os", ToOne(ToManyCont, "Products.ZenModel.Op
      eratingSystem", "routes")), ("interface", ToOne(ToMany, "Products.ZenM
      odel.IpInterface", "iproutes")), ("nexthop", ToOne(ToMany, "Products.Z
      enModel.IpAddress", "clientroutes")), ("target", ToOne(ToMany, "Produc
      ts.ZenModel.IpNetwork", "clientroutes")),)

  ### ipcheck Value:
      re.compile(r'^127\.|^0\.0\.|^169\.254\.|^224\.|^::1$|^fe80:|^ff').sear
      ch