Merge "Add Local IP constants needed for policy checks"
This commit is contained in:
commit
b35ba2fe95
@ -108,6 +108,10 @@ SUB_RESOURCE_ATTRIBUTE_MAP = {
|
||||
'parent': {'collection_name': COLLECTION_NAME,
|
||||
'member_name': RESOURCE_NAME},
|
||||
'parameters': {
|
||||
'local_ip_id': {
|
||||
'allow_post': False,
|
||||
'allow_put': False,
|
||||
'is_visible': True},
|
||||
'local_ip_address': {
|
||||
'allow_post': False,
|
||||
'allow_put': False,
|
||||
@ -140,9 +144,7 @@ SUB_RESOURCE_ATTRIBUTE_MAP = {
|
||||
'allow_put': False,
|
||||
'validate': {'type:string': db_const.PROJECT_ID_FIELD_SIZE},
|
||||
'required_by_policy': True,
|
||||
'is_filter': True,
|
||||
'is_sort_key': True,
|
||||
'is_visible': True},
|
||||
'is_visible': False},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -26,6 +26,7 @@ FLOATINGIPPOOL = "FLOATINGIPPOOL"
|
||||
NETWORK_SEGMENT_RANGE = "NETWORK_SEGMENT_RANGE"
|
||||
CONNTRACKHELPER = "CONNTRACKHELPER"
|
||||
PLACEMENT_REPORT = "placement_report"
|
||||
LOCAL_IP = "LOCAL_IP"
|
||||
|
||||
# TODO(johnsom) Remove after these stop being used. Neutron-LBaaS is now
|
||||
# retired (train) and these should no longer be necessary.
|
||||
|
@ -13,6 +13,7 @@
|
||||
# under the License.
|
||||
|
||||
from neutron_lib.api.definitions import l3
|
||||
from neutron_lib.api.definitions import local_ip
|
||||
from neutron_lib.plugins import constants as plugin_const
|
||||
|
||||
|
||||
@ -26,5 +27,6 @@ from neutron_lib.plugins import constants as plugin_const
|
||||
# registered the service plugin name in neutron-lib.
|
||||
EXT_PARENT_RESOURCE_MAPPING = {
|
||||
l3.FLOATINGIP: plugin_const.L3,
|
||||
l3.ROUTER: plugin_const.CONNTRACKHELPER
|
||||
l3.ROUTER: plugin_const.CONNTRACKHELPER,
|
||||
local_ip.RESOURCE_NAME: plugin_const.LOCAL_IP
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user