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

Class IpRouteEntry

source code

                                                       object --+            
                                                                |            
                                                Lockable.Lockable --+        
                                                                    |        
                                      DeviceComponent.DeviceComponent --+    
                                                                        |    
                                                   object --+           |    
                                                            |           |    
                                    ZenModelBase.ZenModelBase --+       |    
                                                                |       |    
Products.ZenRelations.RelationshipManager.RelationshipManager --+       |    
                                                                |       |    
                                      ExtensionClass.Base --+   |       |    
                                                            |   |       |    
                                       OFS.History.Historical --+       |    
                                                                |       |    
                                                   object --+   |       |    
                                                            |   |       |    
                                          ZenPacker.ZenPacker --+       |    
                                                                |       |    
                                            ZenModelRM.ZenModelRM --+   |    
                                                                    |   |    
                                  DeviceResultInt.DeviceResultInt --+   |    
                                                                    |   |    
                                                       object --+   |   |    
                                                                |   |   |    
                                              EventView.EventView --+   |    
                                                                    |   |    
                                                       object --+   |   |    
                                                                |   |   |    
                                                  RRDView.RRDView --+   |    
                                                                    |   |    
                                          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 its 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, getIconPath, getPrettyLink, isUserCreated, manage_deleteComponent, manage_updateComponent, setUserCreateFlag

Inherited from DeviceComponent.DeviceComponent: filterAutomaticCreation, getAqProperty, getClassObject, getCollectors, getInstDescription, getManageIp, getNagiosTemplate, getParentDeviceName, getParentDeviceUrl, getRRDContextData, getStatus, getStatusString, hostname, manage_afterAdd, manage_afterClone, manage_beforeDelete, monitored, name, setAqProperty

Inherited from Lockable.Lockable: getNextLockableParent, isLockedFromDeletion, isLockedFromUpdates, isUnlocked, lockFromDeletion, lockFromUpdates, lockStatus, lockWarning, sendEventWhenBlocked, setSendEventWhenBlockedFlag, unlock, unsetSendEventWhenBlockedFlag

Inherited from ZenModelRM.ZenModelRM: __init__, changePythonClass, creator, editableDeviceList, findChild, getCreatedTimeString, getDmdKey, getModificationTimeString, getSubObjects, getTreeItems, getZenRootNode, index_object, primarySortKey, reindex_all, rename, unindex_object, viewName, zmanage_addProperty, zmanage_delObjects, zmanage_delProperties, zmanage_editProperties, zmanage_exportObject, zmanage_importObject, zmanage_importObjects

Inherited from ZenModelBase.ZenModelBase: __call__, __hash__, all_meta_types, aqBaseHasAttr, breadCrumbs, callZenScreen, checkRemotePerm, checkValidId, createHierarchyObj, custPropertyIds, custPropertyMap, getBreadCrumbUrlPath, getDmd, getDmdObj, getDmdRoot, getHierarchyObj, getIdLink, getNowString, getObjByPath, getPrimaryDmdId, getUnusedId, getZ, getZopeObj, helpLink, isLocalName, manage_deleteObjects, prepId, saveCustProperties, todayDate, urlLink, view, visibleCustPropertyMap, yesterdayDate, zenScreenUrl, zenpathjoin, zenpathsplit, zentinelTabs

Inherited from OFS.History.Historical: manage_afterHistoryCopy, manage_beforeHistoryCopy, manage_change_history, manage_historicalComparison, manage_historyCompare, manage_historyCopy

Inherited from ZenPacker.ZenPacker: addToZenPack, eligiblePacks, findObject

Inherited from DeviceResultInt.DeviceResultInt: getDeviceClassName, getDeviceClassPath, getDeviceIp, getDeviceIpAddress, getDeviceLink, getDeviceMacaddress, getDeviceName, getDeviceUrl, getPingStatus, getPingStatusNumber, getProdState, getSnmpStatus, getSnmpStatusNumber, isResultLockedFromDeletion, isResultLockedFromUpdates, sendEventWhenResultBlocked

Inherited from EventView.EventView: convertEventField, getEventDetail, getEventDetailFromStatusOrHistory, getEventHistory, getEventManager, getEventOwnerList, getEventSummary, getStatusCssClass, getStatusImgSrc, manage_ackBatchEvents, manage_ackEvents, manage_addLogMessage, manage_createEventMap, manage_deleteBatchEvents, manage_deleteEvents, manage_deleteHeartbeat, manage_setEventStates, manage_undeleteBatchEvents, manage_undeleteEvents

Inherited from RRDView.RRDView: cacheRRDValue, fetchRRDValue, fetchRRDValues, fullRRDPath, getDefaultGraphDefs, getGraphDef, getGraphDefUrl, getRRDDataPoint, getRRDDataPoints, getRRDFileName, getRRDNames, getRRDPaths, getRRDSum, getRRDTemplate, getRRDTemplateByName, getRRDTemplateName, getRRDTemplates, getRRDValue, getRRDValues, getThresholdInstances, getThresholds, makeLocalRRDTemplate, removeLocalRRDTemplate, rrdPath, snmpIgnore

Inherited from object: __delattr__, __getattribute__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

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
  _properties = {'id': 'routemask', 'type': 'string', 'mode': ''...
  _relations = OSComponent._relations+(("os", ToOne(ToManyCont, ...
  security = ClassSecurityInfo()
  ipcheck = re.compile(r'^127\.|^0\.0\.|^169\.254\.|^224\.').search

Inherited from OSComponent.OSComponent: isUserCreatedFlag

Inherited from DeviceComponent.DeviceComponent: __pychecker__, collectors, default_catalog, event_key, perfmonInstance

Inherited from Lockable.Lockable: modelerLock, sendEventWhenBlockedFlag

Inherited from ManagedEntity.ManagedEntity: snmpindex

Inherited from ZenModelRM.ZenModelRM: isInTree

Inherited from ZenModelBase.ZenModelBase: index_html, sub_meta_types

Inherited from OFS.History.Historical: HistoricalRevisions, __ac_permissions__, manage_change_history_page, manage_options

Inherited from OFS.History.Historical (private): _manage_historyComparePage

Properties [hide private]

Inherited from object: __class__

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")),)