-
Notifications
You must be signed in to change notification settings - Fork 390
/
link.sandesh
53 lines (46 loc) · 1.21 KB
/
link.sandesh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
*/
/**
* Definitions of structures added by contrail-topology that go into
* Physical Router UVE.
*/
namespace cpp prouter
enum RemoteType {
VRouter = 0
PRouter = 1
BMS = 2
}
const map<RemoteType, string> RemoteTypeMapNames = {
RemoteType.VRouter : "VRouter",
RemoteType.PRouter : "PRouter"
RemoteType.BMS : "BMS"
}
/**
* Structure to represent a link between two objects [physical
* router, physical server etc] in a physical topology
*/
struct LinkEntry {
1: string remote_system_name
2: string local_interface_name
3: string remote_interface_name
4: RemoteType type
5: i32 local_interface_index
6: i32 remote_interface_index
}
/**
* Physical Router UVE data provided by contrail-topology. This
* includes the neighbor links calculated using the SNMP data in the UVE.
*/
struct PRouterLinkEntry {
1: string name (key="ObjectPRouter")
2: optional bool deleted
3: optional list<LinkEntry> link_table
}
/**
* @description: Physical Router UVE data provided by contrail-topology.
* @object: prouter
*/
uve sandesh PRouterLinkUVE {
1: PRouterLinkEntry data
}