-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstants.py
76 lines (61 loc) · 1.25 KB
/
constants.py
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#Services supported by the plugin
VPLS = "VPLS"
VPLS_ID = "vpn id"
VLAN = "vlan"
VLAN_ID = "vlan"
TRUNK_ALLOW = "trunk-allow"
TRUNK_ALLOW_ID = "trunk vlan"
TRUNK = "Trunk"
OTV="OTV"
EoMPLS = "eompls"
EoMPLS_INT = "eompls_int"
EoMPLS_EXT = "eompls_ext"
SERVICE_INSTANCE = 'service_instance'
NODE_CONFIGURATION = 'configuration'
#Node Types
VIRTUAL_NODE = "virtual"
PHYSICAL_NODE = "physical"
#Network domains
L2_DOMAIN = "L2"
L3_DOMAIN = "L3"
#Status Types
ACTIVE = 'active'
INACTIVE = 'inactive'
#Physical Interface Types
ETHERNET = 'ethernet'
FAST_ETHERNET = 'fast_ethernet'
GIG_ETHERNET = 'gig_ethernet'
#Physical interface group type
LINE_CARD = 'line_card'
VDC = 'vdc'
#Physical node types
SWITCH = 'switch'
STORAGE = 'storage'
SERVER = 'server'
FIREWALL = 'firewall'
ROUTER = 'router'
IDS = 'ids'
IPS = 'ips'
#Physical node group type
CHASSIS='chassis'
#Virtual interface types
VIRTIO ='virtio'
E1000 = 'e1000'
NE2KPCI = 'ne2kpci'
PCNET = 'pcnet'
RTL8139 = 'rtl8139'
TUN = 'tun'
TAP = 'tap'
#Virtual node types
VM = 'vm'
VSWITCH = 'vswitch'
VROUTER = 'vrouter'
BRIDGE = 'bridge'
#Virtual Node group types
VSWITCH_GROUP = 'virtual_switch'
VROUTER_GROUP = 'virtual_router'
BRIDGE_GROUP = 'bridge'
#Node position
FIRST = 'first'
LAST = 'last'
CENTER = 'center'