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
13 PROMPT = '>' # TODO: remove this as it's vague. need to fix any occurances of it first.
15 USER = 'admin' # TODO: who is using this? Can we make it more specific? (e.g. RESTCONF_USER)
18 AUTH = [u'admin', u'admin']
20 HEADERS = {'Content-Type': 'application/json'}
21 HEADERS_XML = {'Content-Type': 'application/xml'}
22 ACCEPT_XML = {'Accept': 'application/xml'}
23 ODL_CONTROLLER_SESSION = None
27 CONTROLLERS = ['CONTROLLER', 'CONTROLLER1', 'CONTROLLER2']
28 CONTROLLER_PASSWORD = '' # empty means use keys
29 MININET_PASSWORD = '' # empty means use keys
34 KARAF_SHELL_PORT = '8101'
35 KARAF_PROMPT = 'opendaylight-user'
37 KARAF_PASSWORD = 'karaf'
39 # VM Environment Variables
40 DEFAULT_LINUX_PROMPT = '>'
42 # VTN Coordinator Variables
45 VTNC_PREFIX = 'http://' + VTNC + ':' + VTNCPORT
46 VTNC_HEADERS = {'Content-Type': 'application/json',
47 'username': 'admin', 'password': 'adminpass'}
49 VTNWEBAPI = '/vtn-webapi'
51 CTRLS_CREATE = 'controllers.json'
56 VTNS_CREATE = 'vtns.json'
60 VBRS_CREATE = 'vbridges.json'
64 VBRIFS_CREATE = 'interfaces.json'
68 PORTMAP_CREATE = 'portmap.json'
71 VLANMAP_CREATE = 'vlanmaps.json'
74 PORTS = 'ports/detail.json'
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:' \
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'
91 AUTH_TOKEN_API = '/oauth2/token'
92 REVOKE_TOKEN_API = '/oauth2/revoke'
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'
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
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"