Merge "OS::Neutron::Subnet host_routes should allow updates."

This commit is contained in:
Jenkins
2014-12-25 22:40:34 +00:00
committed by Gerrit Code Review
2 changed files with 12 additions and 2 deletions

View File

@@ -143,7 +143,8 @@ class Subnet(neutron.NeutronResource):
required=True
),
},
)
),
update_allowed=True
),
}

View File

@@ -1066,6 +1066,11 @@ class NeutronSubnetTest(common.HeatTestCase):
"allocation_pools": [
{"start": "10.0.3.20", "end": "10.0.3.150"}],
"dns_nameservers": ["8.8.8.8", "192.168.1.254"],
"host_routes": [
{"destination": "192.168.1.0/24", "nexthop": "194.168.1.2"}
]
}
update_snippet = rsrc_defn.ResourceDefinition(rsrc.name, rsrc.type(),
props)
@@ -1181,7 +1186,11 @@ class NeutronSubnetTest(common.HeatTestCase):
{'subnet': {
'dns_nameservers': ['8.8.8.8', '192.168.1.254'],
'name': 'mysubnet',
'enable_dhcp': True
'enable_dhcp': True,
'host_routes': [
{'destination': '192.168.1.0/24',
'nexthop': '194.168.1.2'}
]
}}
)