Ejemplo n.º 1
0
 def removeTopo(self, odlJson):
     requestURI = (url + 'topology/default/userLink/' + odlJson.getTopoName())
     req = requests.delete(requestURI, headers = {'Content-Type': 'application/json'}, auth=auth)
     return req.text
Ejemplo n.º 2
0
 def putTopo(self, odlJson):
     requestURI = (url + 'topology/default/userLink/' + odlJson.getTopoName())
     req = requests.put(requestURI, data = odlJson.getJson(),  headers = {'Content-Type': 'application/json'}, auth=auth)
     return req.text