Bug 4267: Fix Tcpmd5user suite
[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
35 # KARAF Variaable
36 KARAF_SHELL_PORT = '8101'
37 KARAF_PROMPT = 'opendaylight-user'
38 KARAF_USER = 'karaf'
39 KARAF_PASSWORD = 'karaf'
40
41 # VM Environment Variables
42 DEFAULT_LINUX_PROMPT = '>'
43
44 # VTN Coordinator Variables
45 VTNC = '127.0.0.1'
46 VTNCPORT = '8083'
47 VTNC_PREFIX = 'http://' + VTNC + ':' + VTNCPORT
48 VTNC_HEADERS = {'Content-Type': 'application/json',
49                 'username': 'admin', 'password': 'adminpass'}
50
51 VTNWEBAPI = '/vtn-webapi'
52 # controllers URL
53 CTRLS_CREATE = 'controllers.json'
54 CTRLS = 'controllers'
55 SW = 'switches'
56
57 # vtn URL
58 VTNS_CREATE = 'vtns.json'
59 VTNS = 'vtns'
60
61 # vbridge URL
62 VBRS_CREATE = 'vbridges.json'
63 VBRS = 'vbridges'
64
65 # interfaces URL
66 VBRIFS_CREATE = 'interfaces.json'
67 VBRIFS = 'interfaces'
68
69 # portmap URL
70 PORTMAP_CREATE = 'portmap.json'
71
72 # vlanmap URL
73 VLANMAP_CREATE = 'vlanmaps.json'
74
75 # ports URL
76 PORTS = 'ports/detail.json'
77
78 # Common APIs
79 CONFIG_NODES_API = '/restconf/config/opendaylight-inventory:nodes'
80 OPERATIONAL_NODES_API = '/restconf/operational/opendaylight-inventory:nodes'
81 OPERATIONAL_NODES_NETVIRT = '/restconf/operational/network-topology:network-topology/topology/netvirt:1'
82 OPERATIONAL_TOPO_API = '/restconf/operational/network-topology:' \
83                        'network-topology'
84 CONFIG_TOPO_API = '/restconf/config/network-topology:network-topology'
85 CONTROLLER_CONFIG_MOUNT = ('/restconf/config/network-topology:'
86                            'network-topology/topology'
87                            '/topology-netconf/node/'
88                            'controller-config/yang-ext:mount')
89 CONFIG_API = '/restconf/config'
90 OPERATIONAL_API = '/restconf/operational'
91
92 # TOKEN
93 AUTH_TOKEN_API = '/oauth2/token'
94 REVOKE_TOKEN_API = '/oauth2/revoke'
95
96 # Base Mininet Mac address. DPID of mininet switches will be derived from this.
97 BASE_MAC_1 = '00:4b:00:00:00:00'
98 # Base IP of mininet hosts
99 BASE_IP_1 = '75.75.0.0'
100
101 # Mininet Custom Topology Path and File
102 CREATE_FULLYMESH_TOPOLOGY_FILE = "create_fullymesh.py"
103 CREATE_FULLYMESH_TOPOLOGY_FILE_PATH = "libraries/MininetTopo/" +\
104                                       CREATE_FULLYMESH_TOPOLOGY_FILE
105
106 GBP_REGEP_API = "/restconf/operations/endpoint:register-endpoint"
107 GBP_UNREGEP_API = "/restconf/operations/endpoint:unregister-endpoint"
108 GBP_TENANTS_API = "/restconf/config/policy:tenants"
109 GBP_TUNNELS_API = "/restconf/config/opendaylight-inventory:nodes"