Restore correct alias for network-gateway extension

Bug 1182682

Change-Id: I85a93e6ccac32515c7ebb2dfe41ba67cf11c9d9f
This commit is contained in:
Salvatore Orlando 2013-05-22 00:24:13 +01:00
parent 08c49053c1
commit 64a523714d
1 changed files with 3 additions and 2 deletions

View File

@ -28,8 +28,9 @@ from quantum import quota
RESOURCE_NAME = "network_gateway"
COLLECTION_NAME = "%ss" % RESOURCE_NAME
EXT_ALIAS = RESOURCE_NAME
# Use dash for alias and collection name
EXT_ALIAS = RESOURCE_NAME.replace('_', '-')
COLLECTION_NAME = "%ss" % EXT_ALIAS
DEVICE_ID_ATTR = 'id'
IFACE_NAME_ATTR = 'interface_name'