Fixes bug
1043630
Port has no 'host_routes' attribute according to the latest V2 API
specification. So, policy check for 'host_routes' is not need any
more, just remove it in this patch.
Change-Id: I925e83d9825f89265843c15e71ee5ed4c33bad5f
"create_port": [],
"create_port:mac_address": [["rule:admin_or_network_owner"]],
- "create_port:host_routes": [["rule:admin_or_network_owner"]],
"create_port:fixed_ips": [["rule:admin_or_network_owner"]],
"get_port": [["rule:admin_or_owner"]],
"update_port": [["rule:admin_or_owner"]],
- "update_port:host_routes": [["rule:admin_or_network_owner"]],
"update_port:fixed_ips": [["rule:admin_or_network_owner"]],
"delete_port": [["rule:admin_or_owner"]]
}
'default': ATTR_NOT_SPECIFIED,
'enforce_policy': True,
'is_visible': True},
- 'host_routes': {'allow_post': True, 'allow_put': True,
- 'default': ATTR_NOT_SPECIFIED,
- 'enforce_policy': True,
- 'is_visible': False},
'device_id': {'allow_post': True, 'allow_put': True,
'default': '',
'is_visible': True},
full_input = {'port': {'admin_state_up': True,
'mac_address': attributes.ATTR_NOT_SPECIFIED,
'fixed_ips': attributes.ATTR_NOT_SPECIFIED,
- 'device_owner': '',
- 'host_routes': attributes.ATTR_NOT_SPECIFIED}}
+ 'device_owner': ''}}
full_input['port'].update(initial_input['port'])
return_value = {'id': _uuid(), 'status': 'ACTIVE',
'admin_state_up': True,
'mac_address': 'ca:fe:de:ad:be:ef',
- 'host_routes': [],
'device_id': device_id,
'device_owner': ''}
return_value.update(initial_input['port'])