Making ssh key configurable in all tests. ${SSH_KEY} variable placed in variables...
[integration/test.git] / test / 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 = '>'
14 CONTAINER = 'default'
15 USER = 'admin'
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 ODL_CONTROLLER_SESSION = None
24 TOPO_TREE_LEVEL = 2
25 TOPO_TREE_DEPTH = 3
26 TOPO_TREE_FANOUT = 2
27 CONTROLLERS = ['CONTROLLER', 'CONTROLLER1', 'CONTROLLER2']
28 KEYFILE_PASS = 'any'
29 SSH_KEY = 'id_rsa'
30
31 # KARAF Variaable
32 KARAF_SHELL_PORT = '8101'
33 KARAF_PROMPT = 'opendaylight-user'
34 KARAF_USER = 'karaf'
35 KARAF_PASSWORD = 'karaf'
36
37 # VM Environment Variables
38 LINUX_PROMPT = '>'
39
40 # VTN Coordinator Variables
41 VTNC = '127.0.0.1'
42 VTNCPORT = '8083'
43 VTNC_PREFIX = 'http://' + VTNC + ':' + VTNCPORT
44 VTNC_HEADERS = {'Content-Type': 'application/json',
45                 'username': 'admin', 'password': 'adminpass'}
46
47 VTNWEBAPI = '/vtn-webapi'
48 # controllers URL
49 CTRLS_CREATE = 'controllers.json'
50 CTRLS = 'controllers'
51 SW = 'switches'
52
53 # vtn URL
54 VTNS_CREATE = 'vtns.json'
55 VTNS = 'vtns'
56
57 # vbridge URL
58 VBRS_CREATE = 'vbridges.json'
59 VBRS = 'vbridges'
60
61 # interfaces URL
62 VBRIFS_CREATE = 'interfaces.json'
63 VBRIFS = 'interfaces'
64
65 # portmap URL
66 PORTMAP_CREATE = 'portmap.json'
67
68 # vlanmap URL
69 VLANMAP_CREATE = 'vlanmaps.json'
70
71 # ports URL
72 PORTS = 'ports/detail.json'
73
74 # Common APIs
75 CONFIG_NODES_API = '/restconf/config/opendaylight-inventory:nodes'
76 OPERATIONAL_NODES_API = '/restconf/operational/opendaylight-inventory:nodes'
77 OPERATIONAL_NODES_NETVIRT = '/restconf/operational/network-topology:network-topology/topology/netvirt:1'
78 OPERATIONAL_TOPO_API = '/restconf/operational/network-topology:' \
79                        'network-topology'
80 CONFIG_TOPO_API = '/restconf/config/network-topology:network-topology'
81 CONTROLLER_CONFIG_MOUNT = ('/restconf/config/network-topology:'
82                            'network-topology/topology'
83                            '/topology-netconf/node/'
84                            'controller-config/yang-ext:mount')
85 CONFIG_API = '/restconf/config/'
86 OPERATIONAL_API = '/restconf/operational/'
87
88 # TOKEN
89 AUTH_TOKEN_API = '/oauth2/token'
90 REVOKE_TOKEN_API = '/oauth2/revoke'
91
92 # Base Mininet Mac address. DPID of mininet switches will be derived from this.
93 BASE_MAC_1 = '00:4b:00:00:00:00'
94 # Base IP of mininet hosts
95 BASE_IP_1 = '75.75.0.0'
96
97 # Mininet Custom Topology Path and File
98 CREATE_FULLYMESH_TOPOLOGY_FILE = "create_fullymesh.py"
99 CREATE_FULLYMESH_TOPOLOGY_FILE_PATH = "libraries/MininetTopo/" +\
100                                       CREATE_FULLYMESH_TOPOLOGY_FILE
101
102 GBP_REGEP_API = "/restconf/operations/endpoint:register-endpoint"
103 GBP_UNREGEP_API = "/restconf/operations/endpoint:unregister-endpoint"
104 GBP_TENANTS_API = "/restconf/config/policy:tenants"
105 GBP_TUNNELS_API = "/restconf/config/opendaylight-inventory:nodes"