-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrest_url_database.py
More file actions
26 lines (18 loc) · 950 Bytes
/
Copy pathrest_url_database.py
File metadata and controls
26 lines (18 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
__author__ = 'venkat'
base_url = 'http://127.0.0.1:8080/'
'''
Specific URL's
'''
# Get the list of Switches present in the network
REST_URL_FOR_NODE = base_url + 'controller/nb/v2/switchmanager/default/nodes'
# Get the individual Link status connected to a Switch
REST_URL_FOR_LINK = base_url + 'controller/nb/v2/switchmanager/default/node/OF/'
# Get the individual Flows installed in a network
# REST_URL_FOR_FLOW = base_url + 'controller/nb/v2/statistics/default/flow'
# Get the individual Flows installed in a switch
REST_URL_FOR_FLOW = base_url + 'controller/nb/v2/statistics/default/flow/node/OF/'
# Get the individual port statistics of a switch
REST_URL_FOR_PORT = base_url + 'controller/nb/v2/statistics/default/port/node/OF/'
# Get the list of hosts connected to each switch
REST_URL_FOR_HOST = base_url + 'controller/nb/v2/hosttracker/default/hosts/active'
#REST_URL_FOR_PORT = base_url + 'controller/nb/v2/statistics/default/port'