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

Class IpAddress

source code

                                                   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 --+
                                                                        |
                            Products.ZenModel.Linkable.Layer3Linkable --+
                                                                        |
                                                                       IpAddress

IpAddress object

Instance Methods [hide private]
 
__init__(self, id, netmask=24) source code
 
setPtrName(self) source code
 
primarySortKey(self)
make sure that networks sort correctly
source code
 
setNetmask(self, value) source code
 
_setPropValue(self, id, value)
override from PerpertyManager to handle checks and ip creation
source code
 
__getattr__(self, name) source code
 
setIpAddress(self, ip)
set the ipaddress can be in the form 1.1.1.1/24 to also set mask
source code
 
getIp(self)
return only the ip
source code
 
getIpAddress(self)
return the ip with its netmask in the form 1.1.1.1/24
source code
 
__str__(self)
str(x)
source code
 
getInterfaceName(self) source code
 
getNetworkName(self) source code
 
getNetworkUrl(self) source code
 
getDeviceUrl(self)
Get the primary url path of the device in which this ip is associated with.
source code
 
device(self)
Reuturn the device for this ip for DeviceResultInt
source code
 
manage_afterAdd(self, item, container)
Device only propagates afterAdd if it is the added object.
source code
 
manage_afterClone(self, item)
Not really sure when this is called.
source code
 
manage_beforeDelete(self, item, container)
Device only propagates beforeDelete if we are being deleted or copied.
source code
 
index_object(self)
A common method to allow Findables to index themselves.
source code
 
unindex_object(self)
A common method to allow Findables to unindex themselves.
source code
 
deviceId(self)
The device id, for indexing purposes.
source code
 
interfaceId(self)
The interface id, for indexing purposes.
source code
 
ipAddressId(self)
The ipAddress id, for indexing purposes.
source code
 
networkId(self)
The network id, for indexing purposes.
source code

Inherited from ZenModelRM.ZenModelRM: changePythonClass, creator, editableDeviceList, findChild, getCreatedTimeString, getDmdKey, getModificationTimeString, getSubObjects, getTreeItems, getZenRootNode, reindex_all, rename, 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, getIconPath, 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, getPingStatus, getPingStatusNumber, getProdState, getSnmpStatus, getSnmpStatusNumber, isResultLockedFromDeletion, isResultLockedFromUpdates, sendEventWhenResultBlocked

Inherited from EventView.EventView: convertEventField, getEventDetail, getEventDetailFromStatusOrHistory, getEventHistory, getEventManager, getEventOwnerList, getEventSummary, getStatus, getStatusCssClass, getStatusImgSrc, getStatusString, 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, getRRDContextData, 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__

Class Variables [hide private]
  meta_type = 'IpAddress'
  portal_type = 'IpAddress'
  event_key = 'IpAddress'
  default_catalog = 'ipSearch'
  _properties = {'id': 'netmask', 'type': 'string', 'mode': 'w',...
  _relations = ManagedEntity._relations+(("network", ToOne(ToMan...
  factory_type_information = {'id': 'IpAddress', 'meta_type': 'I...
  security = ClassSecurityInfo()

Inherited from ManagedEntity.ManagedEntity: monitor, 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]

__init__(self, id, netmask=24)
(Constructor)

source code 
Overrides: ZenModelRM.ZenModelRM.__init__

primarySortKey(self)

source code 
make sure that networks sort correctly
Overrides: ZenModelRM.ZenModelRM.primarySortKey

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)

getDeviceUrl(self)

source code 
Get the primary url path of the device in which this ip is associated with. If no device return url to the ip itself.
Overrides: DeviceResultInt.DeviceResultInt.getDeviceUrl

device(self)

source code 
Reuturn the device for this ip for DeviceResultInt
Overrides: ManagedEntity.ManagedEntity.device

manage_beforeDelete(self, item, container)

source code 
Device only propagates beforeDelete if we are being deleted or copied. Moving and renaming don't propagate.

index_object(self)

source code 
A common method to allow Findables to index themselves.
Overrides: ZenModelRM.ZenModelRM.index_object
(inherited documentation)

unindex_object(self)

source code 
A common method to allow Findables to unindex themselves.
Overrides: ZenModelRM.ZenModelRM.unindex_object
(inherited documentation)

Class Variable Details [hide private]

_properties

Value:
{'id': 'netmask', 'type': 'string', 'mode': 'w', 'setter': 'setNetmask\
'}, {'id': 'ptrName', 'type': 'string', 'mode': 'w'},

_relations

Value:
ManagedEntity._relations+(("network", ToOne(ToManyCont, "Products.ZenM\
odel.IpNetwork", "ipaddresses")), ("interface", ToOne(ToMany, "Product\
s.ZenModel.IpInterface", "ipaddresses")), ("clientroutes", ToMany(ToOn\
e, "Products.ZenModel.IpRouteEntry", "nexthop")),)

factory_type_information

Value:
{'id': 'IpAddress', 'meta_type': 'IpAddress', 'description': """Ip Add\
ress Class""", 'icon': 'IpAddress_icon.gif', 'product': 'ZenModel', 'f\
actory': 'manage_addIpAddress', 'immediate_view': 'viewIpAddressOvervi\
ew', 'actions':({'id': 'overview', 'name': 'Overview', 'action': 'view\
IpAddressOverview', 'permissions':("View",)},)},