Merge "Reworked FlowConfigBlaster to be able to batch multiple flows in a single...
[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 AUTH = [u'admin', u'admin']
18 SCOPE = 'sdn'
19 HEADERS = {'Content-Type': 'application/json'}
20 HEADERS_XML = {'Content-Type': 'application/xml'}
21 ACCEPT_XML = {'Accept': 'application/xml'}
22 ODL_CONTROLLER_SESSION = None
23 TOPO_TREE_LEVEL = 2
24 TOPO_TREE_DEPTH = 3
25 TOPO_TREE_FANOUT = 2
26 # VTN Coordinator Variables
27 VTNC = '127.0.0.1'
28 VTNCPORT = '8083'
29 VTNC_PREFIX = 'http://' + VTNC + ':' + VTNCPORT
30 VTNC_HEADERS = {'Content-Type': 'application/json', 'username': 'admin', 'password': 'adminpass'}
31
32 VTNWEBAPI = '/vtn-webapi'
33 # controllers URL
34 CTRLS_CREATE = 'controllers.json'
35 CTRLS = 'controllers'
36 SW = 'switches'
37
38 # vtn URL
39 VTNS_CREATE = 'vtns.json'
40 VTNS = 'vtns'
41
42 # vbridge URL
43 VBRS_CREATE = 'vbridges.json'
44 VBRS = 'vbridges'
45
46 # interfaces URL
47 VBRIFS_CREATE = 'interfaces.json'
48 VBRIFS = 'interfaces'
49
50 # portmap URL
51 PORTMAP_CREATE = 'portmap.json'
52
53 # vlanmap URL
54 VLANMAP_CREATE = 'vlanmaps.json'
55
56 # ports URL
57 PORTS = 'ports/detail.json'
58
59 # nodes
60 OPERATIONAL_NODES_API = '/restconf/operational/opendaylight-inventory:nodes'
61
62 # TOKEN
63 AUTH_TOKEN_API = '/oauth2/token'
64 REVOKE_TOKEN_API = '/oauth2/revoke'