Move to version 3 of the REST API.

Rename packet capture endpoints.
This commit is contained in:
grossmj
2020-11-02 12:05:32 +10:30
parent eeaf10b418
commit 359f9a7384
34 changed files with 120 additions and 118 deletions

View File

@ -497,7 +497,7 @@ class Compute:
host = "[{}]".format(host)
elif host == "0.0.0.0":
host = "127.0.0.1"
return "{}://{}:{}/v2/compute{}".format(self._protocol, host, self._port, path)
return "{}://{}:{}/v3/compute{}".format(self._protocol, host, self._port, path)
def get_url(self, path):
""" Returns URL for specific path at Compute"""