Fix failing LISP tests due to implementation changes
[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 # BGP variables
42 ODL_BGP_PORT = '1790'
43 BGP_TOOL_PORT = '17900'
44
45 # VM Environment Variables
46 DEFAULT_LINUX_PROMPT = '>'
47
48 # VTN Coordinator Variables
49 VTNC = '127.0.0.1'
50 VTNCPORT = '8083'
51 VTNC_PREFIX = 'http://' + VTNC + ':' + VTNCPORT
52 VTNC_HEADERS = {'Content-Type': 'application/json',
53                 'username': 'admin', 'password': 'adminpass'}
54
55 VTNWEBAPI = '/vtn-webapi'
56 # controllers URL
57 CTRLS_CREATE = 'controllers.json'
58 CTRLS = 'controllers'
59 SW = 'switches'
60
61 # vtn URL
62 VTNS_CREATE = 'vtns.json'
63 VTNS = 'vtns'
64
65 # vbridge URL
66 VBRS_CREATE = 'vbridges.json'
67 VBRS = 'vbridges'
68
69 # interfaces URL
70 VBRIFS_CREATE = 'interfaces.json'
71 VBRIFS = 'interfaces'
72
73 # portmap URL
74 PORTMAP_CREATE = 'portmap.json'
75
76 # vlanmap URL
77 VLANMAP_CREATE = 'vlanmaps.json'
78
79 # ports URL
80 PORTS = 'ports/detail.json'
81
82 # flowlist URL
83 FLOWLISTS_CREATE = 'flowlists.json'
84
85 # flowlistentry_URL
86 FLOWLISTENTRIES_CREATE = 'flowlistentries.json'
87 FLOWLISTS = 'flowlists'
88
89 # flowfilter_URL
90 FLOWFILTERS_CREATE = 'flowfilters.json'
91 FLOWFILTERENTRIES_CREATE = 'flowfilterentries.json'
92 FLOWFILTERS = 'flowfilters/in'
93 FLOWFILTERS_UPDATE = 'flowfilterentries'
94
95
96 # Common APIs
97 CONFIG_NODES_API = '/restconf/config/opendaylight-inventory:nodes'
98 OPERATIONAL_NODES_API = '/restconf/operational/opendaylight-inventory:nodes'
99 OPERATIONAL_NODES_NETVIRT = '/restconf/operational/network-topology:network-topology/topology/netvirt:1'
100 OPERATIONAL_TOPO_API = '/restconf/operational/network-topology:' \
101                        'network-topology'
102 CONFIG_TOPO_API = '/restconf/config/network-topology:network-topology'
103 CONTROLLER_CONFIG_MOUNT = ('/restconf/config/network-topology:'
104                            'network-topology/topology'
105                            '/topology-netconf/node/'
106                            'controller-config/yang-ext:mount')
107 CONFIG_API = '/restconf/config'
108 OPERATIONAL_API = '/restconf/operational'
109
110 # TOKEN
111 AUTH_TOKEN_API = '/oauth2/token'
112 REVOKE_TOKEN_API = '/oauth2/revoke'
113
114 # Base Mininet Mac address. DPID of mininet switches will be derived from this.
115 BASE_MAC_1 = '00:4b:00:00:00:00'
116 # Base IP of mininet hosts
117 BASE_IP_1 = '75.75.0.0'
118
119 # Vlan Custom Topology Path and File
120 CREATE_VLAN_TOPOLOGY_FILE = "vlan_vtn_test.py"
121 CREATE_VLAN_TOPOLOGY_FILE_PATH = "MininetTopo/" +\
122                                  CREATE_VLAN_TOPOLOGY_FILE
123
124 # Mininet Custom Topology Path and File
125 CREATE_FULLYMESH_TOPOLOGY_FILE = "create_fullymesh.py"
126 CREATE_FULLYMESH_TOPOLOGY_FILE_PATH = "libraries/MininetTopo/" +\
127                                       CREATE_FULLYMESH_TOPOLOGY_FILE
128
129 GBP_REGEP_API = "/restconf/operations/endpoint:register-endpoint"
130 GBP_UNREGEP_API = "/restconf/operations/endpoint:unregister-endpoint"
131 GBP_TENANTS_API = "/restconf/config/policy:tenants"
132 GBP_TUNNELS_API = "/restconf/config/opendaylight-inventory:nodes"
133
134 # LISP Flow Mapping variables
135 LFM_RPC_API = "/restconf/operations/mappingservice"
136 LFM_RPC_API_LI = "/restconf/operations/lfm-mapping-database"