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