RM8499 added ip_policy_id to subnet response
This commit is contained in:
@@ -18,11 +18,12 @@
|
||||
from neutron.api import extensions
|
||||
|
||||
EXTENDED_ATTRIBUTES_2_0 = {
|
||||
'subnets': {
|
||||
"subnets": {
|
||||
"segment_id": {"allow_post": True, "default": None},
|
||||
"enable_dhcp": {'allow_post': False, 'allow_put': False,
|
||||
'default': False,
|
||||
'is_visible': True},
|
||||
"enable_dhcp": {"allow_post": False, "allow_put": False,
|
||||
"default": False, "is_visible": True},
|
||||
"ip_policy_id": {"allow_post": False, "allow_put": False,
|
||||
"default": None, "is_visible": True}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -103,7 +103,8 @@ def _make_subnet_dict(subnet, fields=None):
|
||||
"dns_nameservers": dns_nameservers or [],
|
||||
"cidr": subnet.get("cidr"),
|
||||
"shared": STRATEGY.is_parent_network(net_id),
|
||||
"enable_dhcp": None}
|
||||
"enable_dhcp": None,
|
||||
"ip_policy_id": subnet.get("ip_policy_id")}
|
||||
|
||||
if CONF.QUARK.show_allocation_pools:
|
||||
res["allocation_pools"] = _allocation_pools(subnet)
|
||||
|
||||
Reference in New Issue
Block a user