neutron_port: Ensure network and subnet are created
This change fixes the wrong key used to look up the neutron_network resource which should be created before a neutron_port is created. Also, additional requirement for neutron_subnet is added, so that the subnet is created before a port which belongs to that subnet is created. Change-Id: Ie8d379d5dbb7b4095d8dc35311170ab2e07b6a76
This commit is contained in:
parent
2ef08f70b1
commit
01ec1c56f7
|
@ -97,7 +97,11 @@ Puppet::Type.newtype(:neutron_port) do
|
|||
end
|
||||
|
||||
autorequire(:neutron_network) do
|
||||
[self[:name]]
|
||||
[self[:network_name]]
|
||||
end
|
||||
|
||||
autorequire(:neutron_subnet) do
|
||||
[self[:subnet_name]] if self[:subnet_name]
|
||||
end
|
||||
|
||||
validate do
|
||||
|
|
Loading…
Reference in New Issue