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:
Takashi Kajinami 2022-02-13 21:15:18 +09:00
parent 2ef08f70b1
commit 01ec1c56f7
1 changed files with 5 additions and 1 deletions

View File

@ -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