1
2
3
4
5
6
7
8
9
10
11 from Products.ZenModel.ZenModelRM import ZenModelRM
12 from Products.ZenRelations.RelSchema import *
13
14
16 """ Defines the interface for Link-like objects, which
17 represent a connection between two devices or components
18 """
19
20 link_type = ''
21 OSI_layer = ''
22 entry_type = ''
23
25 """ Returns the event status, determined by:
26 Pingdown on Device owning either endpoint
27 Most severe event on either endpoint
28 """
29 raise NotImplementedError
30
32 """ Sets the two endpoints of a link-like object """
33 raise NotImplementedError
34
36 """ Returns unique endpoint names (see Linkable.getEndpointName)"""
37 raise NotImplementedError
38
40 """ Returns the link endpoint that is not the one given """
41 raise NotImplementedError
42
44 """ Returns data ready for serialization.
45 Format:
46 [ id link as string
47 , endpoint a name
48 , endpoint b name
49 , self.OSI_layer
50 , self.link_type
51 , self.entry_type
52 , self.id
53 ]
54 """
55 raise NotImplementedError
56
58 """ Return the addresses of the endpoints
59 aggregated for the generation of the context
60 """
61 raise NotImplementedError
62
63
64
65 -class Link(ZenModelRM):
70