예제 #1
0
 def removeHost(self, odlJson):
     requestURI = (url + 'hosttracker/default/address/' + odlJson.getHostIp())
     req = requests.delete(requestURI, headers = {'Content-Type': 'application/json'}, auth=auth)
     return req.text
예제 #2
0
 def putHost(self, odlJson):
     requestURI = (url + 'hosttracker/default/address/' + odlJson.getHostIp())
     req = requests.put(requestURI, data = odlJson.getJson(),  headers = {'Content-Type': 'application/json'}, auth=auth)
     return req.text