diff options
Diffstat (limited to 'share/newton_base/openoapi/network.py')
-rw-r--r-- | share/newton_base/openoapi/network.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/share/newton_base/openoapi/network.py b/share/newton_base/openoapi/network.py index 0f4a2df1..9e7f0d94 100644 --- a/share/newton_base/openoapi/network.py +++ b/share/newton_base/openoapi/network.py @@ -39,6 +39,10 @@ class Networks(APIView): ("project_id", "tenantId"), ] + def __init__(self): + super(Networks, self).__init__() + self._logger = logger + def get(self, request, vimid="", tenantid="", networkid=""): logger.info("vimid, tenantid, networkid = %s,%s,%s" % (vimid, tenantid, networkid)) if request.data: @@ -212,9 +216,12 @@ class Networks(APIView): status=status.HTTP_500_INTERNAL_SERVER_ERROR) - class APIv1Networks(Networks): + def __init__(self): + super(APIv1Networks, self).__init__() + self._logger = logger + def get(self, request, cloud_owner="", cloud_region_id="", tenantid="", networkid=""): self._logger.info("%s, %s" % (cloud_owner, cloud_region_id)) |