Update lisp performance tests
[integration/test.git] / csit / variables / Variables.py
1 """
2 Library for the robot based system test tool of the OpenDaylight project.
3 Authors: Baohua Yang@IBM, Denghui Huang@IBM
4 Updated: 2013-11-14
5 """
6
7 # Global variables
8 CONTROLLER = '127.0.0.1'
9 PORT = '8080'
10 RESTPORT = '8282'
11 RESTCONFPORT = '8181'
12 PREFIX = 'http://' + CONTROLLER + ':' + PORT
13 PROMPT = '>'  # TODO: remove this as it's vague.  need to fix any occurances of it first.
14 CONTAINER = 'default'
15 USER = 'admin'  # TODO: who is using this?  Can we make it more specific? (e.g.  RESTCONF_USER)
16 PWD = 'admin'
17 PASSWORD = 'EMPTY'
18 AUTH = [u'admin', u'admin']
19 SCOPE = 'sdn'
20 HEADERS = {'Content-Type': 'application/json'}
21 HEADERS_XML = {'Content-Type': 'application/xml'}
22 ACCEPT_XML = {'Accept': 'application/xml'}
23 ACCEPT_JSON = {'Accept': 'application/json'}
24 ODL_CONTROLLER_SESSION = None
25 TOPO_TREE_LEVEL = 2
26 TOPO_TREE_DEPTH = 3
27 TOPO_TREE_FANOUT = 2
28 CONTROLLERS = ['CONTROLLER', 'CONTROLLER1', 'CONTROLLER2']
29 CONTROLLER_PASSWORD = ''  # empty means use keys
30 MININET_PASSWORD = ''  # empty means use keys
31 KEYFILE_PASS = 'any'
32 SSH_KEY = 'id_rsa'
33 CONTROLLER_STOP_TIMEOUT = 120  # Max number of seconds test will wait for a controller to stop
34 TOPOLOGY_URL = 'network-topology:network-topology/topology'
35 SEND_ACCEPT_XML_HEADERS = {'Content-Type': 'application/xml', 'Accept': 'application/xml'}
36
37 # KARAF Variaable
38 KARAF_SHELL_PORT = '8101'
39 ESCAPE_CHARACTER = chr(int(27))
40 KARAF_DETAILED_PROMPT = '@' + ESCAPE_CHARACTER + '[0m' + ESCAPE_CHARACTER + '[34mroot' + ESCAPE_CHARACTER + '[0m>'
41 KARAF_PROMPT = 'opendaylight-user'
42 KARAF_USER = 'karaf'
43 KARAF_PASSWORD = 'karaf'
44
45 # BGP variables
46 ODL_BGP_PORT = '1790'
47 BGP_TOOL_PORT = '17900'
48
49 # VM Environment Variables
50 DEFAULT_LINUX_PROMPT = '>'
51
52 # VTN Coordinator Variables
53 VTNC = '127.0.0.1'
54 VTNCPORT = '8083'
55 VTNC_PREFIX = 'http://' + VTNC + ':' + VTNCPORT
56 VTNC_HEADERS = {'Content-Type': 'application/json',
57                 'username': 'admin', 'password': 'adminpass'}
58
59 VTNWEBAPI = '/vtn-webapi'
60 # controllers URL
61 CTRLS_CREATE = 'controllers.json'
62 CTRLS = 'controllers'
63 SW = 'switches'
64
65 # vtn URL
66 VTNS_CREATE = 'vtns.json'
67 VTNS = 'vtns'
68
69 # vbridge URL
70 VBRS_CREATE = 'vbridges.json'
71 VBRS = 'vbridges'
72
73 # interfaces URL
74 VBRIFS_CREATE = 'interfaces.json'
75 VBRIFS = 'interfaces'
76
77 # portmap URL
78 PORTMAP_CREATE = 'portmap.json'
79
80 # vlanmap URL
81 VLANMAP_CREATE = 'vlanmaps.json'
82
83 # ports URL
84 PORTS = 'ports/detail.json'
85
86 # flowlist URL
87 FLOWLISTS_CREATE = 'flowlists.json'
88
89 # flowlistentry_URL
90 FLOWLISTENTRIES_CREATE = 'flowlistentries.json'
91 FLOWLISTS = 'flowlists'
92
93 # flowfilter_URL
94 FLOWFILTERS_CREATE = 'flowfilters.json'
95 FLOWFILTERENTRIES_CREATE = 'flowfilterentries.json'
96 FLOWFILTERS = 'flowfilters/in'
97 FLOWFILTERS_UPDATE = 'flowfilterentries'
98
99
100 # Common APIs
101 CONFIG_NODES_API = '/restconf/config/opendaylight-inventory:nodes'
102 OPERATIONAL_NODES_API = '/restconf/operational/opendaylight-inventory:nodes'
103 OPERATIONAL_NODES_NETVIRT = '/restconf/operational/network-topology:network-topology/topology/netvirt:1'
104 OPERATIONAL_TOPO_API = '/restconf/operational/network-topology:' \
105                        'network-topology'
106 CONFIG_TOPO_API = '/restconf/config/network-topology:network-topology'
107 CONTROLLER_CONFIG_MOUNT = ('/restconf/config/network-topology:'
108                            'network-topology/topology'
109                            '/topology-netconf/node/'
110                            'controller-config/yang-ext:mount')
111 CONFIG_API = '/restconf/config'
112 OPERATIONAL_API = '/restconf/operational'
113 MODULES_API = '/restconf/modules'
114
115 # TOKEN
116 AUTH_TOKEN_API = '/oauth2/token'
117 REVOKE_TOKEN_API = '/oauth2/revoke'
118
119 # Base Mininet Mac address. DPID of mininet switches will be derived from this.
120 BASE_MAC_1 = '00:4b:00:00:00:00'
121 # Base IP of mininet hosts
122 BASE_IP_1 = '75.75.0.0'
123
124 # Vlan Custom Topology Path and File
125 CREATE_VLAN_TOPOLOGY_FILE = "vlan_vtn_test.py"
126 CREATE_VLAN_TOPOLOGY_FILE_PATH = "MininetTopo/" +\
127                                  CREATE_VLAN_TOPOLOGY_FILE
128
129 # Mininet Custom Topology Path and File
130 CREATE_FULLYMESH_TOPOLOGY_FILE = "create_fullymesh.py"
131 CREATE_FULLYMESH_TOPOLOGY_FILE_PATH = "libraries/MininetTopo/" +\
132                                       CREATE_FULLYMESH_TOPOLOGY_FILE
133
134 # Mininet Custom Topology Path and File for Path Policy
135 CREATE_PATHPOLICY_TOPOLOGY_FILE = "topo-3sw-2host_multipath.py"
136 CREATE_PATHPOLICY_TOPOLOGY_FILE_PATH = "MininetTopo/" +\
137                                        CREATE_PATHPOLICY_TOPOLOGY_FILE
138
139 GBP_REGEP_API = "/restconf/operations/endpoint:register-endpoint"
140 GBP_UNREGEP_API = "/restconf/operations/endpoint:unregister-endpoint"
141 GBP_TENANTS_API = "/restconf/config/policy:tenants"
142 GBP_TUNNELS_API = "/restconf/config/opendaylight-inventory:nodes"
143
144 # LISP Flow Mapping variables
145 LFM_RPC_API = "/restconf/operations/mappingservice"
146 LFM_RPC_API_LI = "/restconf/operations/lfm-mapping-database"
147 LFM_SB_RPC_API = "/restconf/operations/lisp-sb"