'value_specs': {'Type': 'Map',
'Default': {}},
'admin_state_up': {'Default': True,
- 'Type': 'Boolean'}}
+ 'Type': 'Boolean'},
+ 'tenant_id': {'Type': 'String'}}
attributes_schema = {
"id": "the unique identifier for this network",
"status": "the status of the network",
"network": {
"Type": "OS::Neutron::Net",
"Properties": {
- "name": "the_network"
+ "name": "the_network",
+ "tenant_id": "c1210485b2424d48804aad5d39c61b8f"
}
},
"unnamed_network": {
"Type": "OS::Neutron::Subnet",
"Properties": {
"network_id": { "Ref" : "network" },
+ "tenant_id": "c1210485b2424d48804aad5d39c61b8f",
"ip_version": 4,
"cidr": "10.0.3.0/24",
"allocation_pools": [{"start": "10.0.3.20", "end": "10.0.3.150"}],
clients.OpenStackClients.keystone().AndReturn(
fakes.FakeKeystoneClient())
neutronclient.Client.create_network({
- 'network': {'name': u'the_network', 'admin_state_up': True}
+ 'network': {
+ 'name': u'the_network',
+ 'admin_state_up': True,
+ 'tenant_id': 'c1210485b2424d48804aad5d39c61b8f'}
}).AndReturn({"network": {
"status": "BUILD",
"subnets": [],
'allocation_pools': [
{'start': u'10.0.3.20', 'end': u'10.0.3.150'}],
'ip_version': 4,
- 'cidr': u'10.0.3.0/24'
+ 'cidr': u'10.0.3.0/24',
+ 'tenant_id': 'c1210485b2424d48804aad5d39c61b8f'
}
}).AndReturn({
"subnet": {
{'start': u'10.0.3.20', 'end': u'10.0.3.150'}],
'ip_version': 4,
'enable_dhcp': False,
- 'cidr': u'10.0.3.0/24'
+ 'cidr': u'10.0.3.0/24',
+ 'tenant_id': 'c1210485b2424d48804aad5d39c61b8f'
}
}).AndReturn({
"subnet": {