summaryrefslogtreecommitdiffstats
path: root/lib/puppet/type/sriov_vf_config.rb
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-08-29 23:29:27 +0000
committerGerrit Code Review <review@openstack.org>2016-08-29 23:29:27 +0000
commit1047dba66ea9cadb4bc702eae5c0bc362bbc4ccc (patch)
treedff81d55c7f89dac4c619d4a56cd4491facea0d8 /lib/puppet/type/sriov_vf_config.rb
parentd3491b5351183a16d2637c3e10afa5e66ee316ab (diff)
parenteec3bba44b5a7e09dba4d427bd0d3d71a4956a7a (diff)
Merge "Configure the numvfs for SRIOV interfaces"
Diffstat (limited to 'lib/puppet/type/sriov_vf_config.rb')
-rw-r--r--lib/puppet/type/sriov_vf_config.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/puppet/type/sriov_vf_config.rb b/lib/puppet/type/sriov_vf_config.rb
new file mode 100644
index 0000000..09a3671
--- /dev/null
+++ b/lib/puppet/type/sriov_vf_config.rb
@@ -0,0 +1,10 @@
+Puppet::Type.newtype(:sriov_vf_config) do
+
+ ensurable
+
+ newparam(:name) do
+ desc "sriov_numvfs conf as <physical_network>:<number_of_vfs> format"
+ newvalues(/^[a-z0-9\-_]+:[0-9]+$/)
+ end
+
+end