Package Products :: Package ZenUtils :: Module NetworkTree :: Class NetworkLink |
[hide private]
[frames] | no frames]

# Class NetworkLink

source code

             object --+
                      |
    ZenModel.Link.ILink --+
                          |
                         NetworkLink

Represents a link between two IpInterfaces related by network connectivity. Not a persistent object, so not managed by a LinkManager. Implements Products.ZenModel.Link.ILink.

Instance Methods | [hide private]
__hash__(self) | source code
setEndpoints(self, pointa, pointb) Sets the two endpoints of a link-like object | source code
getEndpoints(self) | source code
getStatus(self) Returns the event status, determined by: Pingdown on Device owning either endpoint Most severe event on either endpoint | source code
getEndpointNames(self) Returns unique endpoint names (see Linkable.getEndpointName) | source code
getOtherEndpoint(self, endpoint) Returns the link endpoint that is not the one given | source code
getDataForJSON(self) Returns data ready for serialization. | source code
getGeomapData(self, context, full=False) Return the addresses of the endpoints aggregated for the generation of the context | source code

Class Variables | [hide private]
| OSI_layer = `'3'`
| pointa = `None`
| pointb = `None`
Inherited from `ZenModel.Link.ILink`: `entry_type`, `link_type`

Method Details | [hide private]

### __hash__(self) (Hashing function) | source code
Overrides: object.__hash__ (inherited documentation)

### setEndpoints(self, pointa, pointb) | source code
Sets the two endpoints of a link-like object Overrides: ZenModel.Link.ILink.setEndpoints (inherited documentation)

### getStatus(self) | source code
Returns the event status, determined by: Pingdown on Device owning either endpoint Most severe event on either endpoint Overrides: ZenModel.Link.ILink.getStatus (inherited documentation)

### getEndpointNames(self) | source code
Returns unique endpoint names (see Linkable.getEndpointName) Overrides: ZenModel.Link.ILink.getEndpointNames (inherited documentation)

### getOtherEndpoint(self, endpoint) | source code
Returns the link endpoint that is not the one given Overrides: ZenModel.Link.ILink.getOtherEndpoint (inherited documentation)

### getDataForJSON(self) | source code
    Returns data ready for serialization.
    Format:
        [ id link as string
        , endpoint a name
        , endpoint b name
        , self.OSI_layer
        , self.link_type
        , self.entry_type
        , self.id
        ]
Overrides: ZenModel.Link.ILink.getDataForJSON (inherited documentation)

### getGeomapData(self, context, full=False) | source code
Return the addresses of the endpoints aggregated for the generation of the context Overrides: ZenModel.Link.ILink.getGeomapData