2 Library for the robot based system test tool of the OpenDaylight project.
3 Authors: Baohua Yang@IBM, Denghui Huang@IBM
8 CONTROLLER = '127.0.0.1'
12 PREFIX = 'http://' + CONTROLLER + ':' + PORT
17 AUTH = [u'admin', u'admin']
19 HEADERS = {'Content-Type': 'application/json'}
20 HEADERS_XML = {'Content-Type': 'application/xml'}
21 ACCEPT_XML = {'Accept': 'application/xml'}
22 ODL_CONTROLLER_SESSION = None
28 KARAF_SHELL_PORT = '8101'
29 KARAF_PROMPT = 'opendaylight-user'
31 KARAF_PASSWORD = 'karaf'
33 # VM Environment Variables
36 # VTN Coordinator Variables
39 VTNC_PREFIX = 'http://' + VTNC + ':' + VTNCPORT
40 VTNC_HEADERS = {'Content-Type': 'application/json',
41 'username': 'admin', 'password': 'adminpass'}
43 VTNWEBAPI = '/vtn-webapi'
45 CTRLS_CREATE = 'controllers.json'
50 VTNS_CREATE = 'vtns.json'
54 VBRS_CREATE = 'vbridges.json'
58 VBRIFS_CREATE = 'interfaces.json'
62 PORTMAP_CREATE = 'portmap.json'
65 VLANMAP_CREATE = 'vlanmaps.json'
68 PORTS = 'ports/detail.json'
71 CONFIG_NODES_API = '/restconf/config/opendaylight-inventory:nodes'
72 OPERATIONAL_NODES_API = '/restconf/operational/opendaylight-inventory:nodes'
73 OPERATIONAL_NODES_NETVIRT = '/restconf/operational/network-topology:network-topology/topology/netvirt:1'
74 OPERATIONAL_TOPO_API = '/restconf/operational/network-topology:' \
76 CONFIG_TOPO_API = '/restconf/config/network-topology:network-topology'
77 CONTROLLER_CONFIG_MOUNT = ('/restconf/config/network-topology:'
78 'network-topology/topology'
79 '/topology-netconf/node/'
80 'controller-config/yang-ext:mount')
83 AUTH_TOKEN_API = '/oauth2/token'
84 REVOKE_TOKEN_API = '/oauth2/revoke'
86 # Base Mininet Mac address. DPID of mininet switches will be derived from this.
87 BASE_MAC_1 = '00:4b:00:00:00:00'
88 # Base IP of mininet hosts
89 BASE_IP_1 = '75.75.0.0'
91 # Mininet Custom Topology Path and File
92 CREATE_FULLYMESH_TOPOLOGY_FILE = "create_fullymesh.py"
93 CREATE_FULLYMESH_TOPOLOGY_FILE_PATH = "libraries/MininetTopo/" +\
94 CREATE_FULLYMESH_TOPOLOGY_FILE