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

Class IpAddress

source code

ManagedEntity.ManagedEntity --+
                              |
      Linkable.Linkable --+   |
                          |   |
    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 IP address.
source code
 
getIp(self)
Return only the IP address
source code
 
getIpAddress(self)
Return the IP with its netmask in the form 1.1.1.1/24
source code
 
__str__(self) source code
 
getInterfaceName(self) source code
 
getDeviceName(self) source code
 
getNetworkName(self) source code
 
getInterfaceDescription(self)
Used for indexing
source code
 
getInterfaceMacAddress(self)
Used for indexing
source code
 
getNetworkUrl(self) source code
 
getDeviceUrl(self)
Get the primary URL path of the device to which this IP is associated.
source code
 
device(self)
Return the device for this IP
source code
 
index_object(self, idxs=None) source code
 
unindex_object(self) 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
 
allowedRolesAndUsers(self)
Returns all the users and groups that have permission for this ip address.
source code
 
details(self) source code
 
ipAddressAsInt(self) source code

Inherited from Linkable.Linkable: index_links, unindex_links

Inherited from Linkable.Linkable (private): _getLinkCatalog

Class Variables [hide private]
  meta_type = 'IpAddress'
  portal_type = 'IpAddress'
  event_key = 'IpAddress'
  default_catalog = 'ipSearch'
  version = 4
  detailKeys = 'device', 'interface', 'macAddress', 'interfaceDe...
  _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 Linkable.Layer3Linkable: link_catalog

Method Details [hide private]

setIpAddress(self, ip)

source code 

Set the IP address. Use the format 1.1.1.1/24 to also set the netmask

getDeviceUrl(self)

source code 

Get the primary URL path of the device to which this IP is associated. If no device return the URL to the IP itself.

deviceId(self)

source code 

The device id, for indexing purposes.

Overrides: Linkable.Layer3Linkable.deviceId

interfaceId(self)

source code 

The interface id, for indexing purposes.

Overrides: Linkable.Layer3Linkable.interfaceId

ipAddressId(self)

source code 

The ipAddress id, for indexing purposes.

Overrides: Linkable.Layer3Linkable.ipAddressId

networkId(self)

source code 

The network id, for indexing purposes.

Overrides: Linkable.Layer3Linkable.networkId

allowedRolesAndUsers(self)

source code 

Returns all the users and groups that have permission for this ip address. Used for indexing.


Class Variable Details [hide private]

detailKeys

Value:
'device', 'interface', 'macAddress', 'interfaceDescription'

_properties

Value:
{'id': 'netmask', 'type': 'string', 'mode': 'w', 'setter': 'setNetmask\
'}, {'id': 'ptrName', 'type': 'string', 'mode': 'w'}, {'id': 'version'\
, 'type': 'int', '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",)},)},