diff options
Diffstat (limited to 'share/newton_base/openoapi/vport.py')
-rw-r--r-- | share/newton_base/openoapi/vport.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/share/newton_base/openoapi/vport.py b/share/newton_base/openoapi/vport.py index ca6297dc..a98b807b 100644 --- a/share/newton_base/openoapi/vport.py +++ b/share/newton_base/openoapi/vport.py @@ -40,6 +40,10 @@ class Vports(APIView): ("ip_address", "ip"), ] + def __init__(self): + super(Vports, self).__init__() + self._logger = logger + def get(self, request, vimid="", tenantid="", portid=""): logger.info("vimid, tenantid, portid = %s,%s,%s" % (vimid, tenantid, portid)) if request.data: @@ -248,6 +252,10 @@ class Vports(APIView): class APIv1Vports(Vports): + def __init__(self): + super(APIv1Vports, self).__init__() + self._logger = logger + def get(self, request, cloud_owner="", cloud_region_id="", tenantid="", portid=""): self._logger.info("%s, %s" % (cloud_owner, cloud_region_id)) |