From ceba5302da66201f3f3f3617eb740e73b0b404e1 Mon Sep 17 00:00:00 2001 From: armando-migliaccio Date: Thu, 2 Jul 2015 22:09:33 -0700 Subject: [PATCH] Stop using these variables In order to register this plugin and its extensions, it suffices adding the extension path to the list of the ones to be loaded. Change-Id: Ic087b36f5b7a889455d8f1b785cfb6a35fa196ae --- networking_l2gw/extensions/l2gateway.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/networking_l2gw/extensions/l2gateway.py b/networking_l2gw/extensions/l2gateway.py index 422dcc9..c05edb1 100644 --- a/networking_l2gw/extensions/l2gateway.py +++ b/networking_l2gw/extensions/l2gateway.py @@ -17,20 +17,15 @@ import abc from neutron.api import extensions from neutron.api.v2 import attributes from neutron.api.v2 import resource_helper -from neutron.plugins.common import constants import networking_l2gw.extensions -from networking_l2gw.services.l2gateway.common import constants as l2gw_const +from networking_l2gw.services.l2gateway.common import constants from networking_l2gw.services.l2gateway.common import l2gw_validators extensions.append_api_extensions_path(networking_l2gw.extensions.__path__) -constants.L2GW = l2gw_const.L2GW -constants.COMMON_PREFIXES["L2GW"] = "" -constants.EXT_TO_SERVICE_MAPPING['l2gateway'] = constants.L2GW -constants.ALLOWED_SERVICES.append(constants.L2GW) RESOURCE_ATTRIBUTE_MAP = { - l2gw_const.L2_GATEWAYS: { + constants.L2_GATEWAYS: { 'id': {'allow_post': False, 'allow_put': False, 'is_visible': True}, 'name': {'allow_post': True, 'allow_put': True,