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