puppet-neutron/lib/puppet/type/neutron_agent_sriov_numvfs.rb
Tobias Urdin 5cff5cdfd5 Escape hyphen in neutron_agent_sriov_numvfs regexp
Change-Id: I49998e3aa5c8d7b47c79764587594ee66c34bb24
2021-05-05 15:45:08 +02:00

12 lines
213 B
Ruby

Puppet::Type.newtype(:neutron_agent_sriov_numvfs) do
ensurable
newparam(:name) do
desc "sriov_numvfs conf as <physical_network>:<number_of_vfs> format"
newvalues(/^[a-z0-9\-_]+:[0-9]+$/)
end
end