Network type needs to include subnet mask on network param.

This commit is contained in:
James Turnbull 2011-08-15 15:01:07 -07:00
parent 82a4378155
commit ca8850b8fd
1 changed files with 2 additions and 2 deletions

View File

@ -9,8 +9,8 @@ Puppet::Type.newtype(:nova_network) do
# segments b/c it is actually the combination of network/prefix
# that determine uniqueness
newparam(:network, :namevar => true) do
desc "Network (ie, 192.168.1.0)"
newvalues(/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.0$/)
desc "Network (ie, 192.168.1.0/24)"
newvalues(/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.0\/[0-9]{1,2}$/)
end
newparam(:label) do