Configure the numvfs for SRIOV interfaces
authorkarthik s <ksundara@redhat.com>
Fri, 26 Aug 2016 16:18:04 +0000 (21:48 +0530)
committerkarthik s <ksundara@redhat.com>
Mon, 29 Aug 2016 14:11:35 +0000 (19:41 +0530)
commiteec3bba44b5a7e09dba4d427bd0d3d71a4956a7a
treee5dd6531b22285007b24470c808f5e6df8d59af4
parent6a6aeaa95313bf78c0cf19cca6331bc1d23e6563
Configure the numvfs for SRIOV interfaces

This patch shall create VFs via the PCI SYS interface.
Default value : $::os_service_default
Sample Format : ['eth0:4','eth2:128']
For values as in sample format, the sriov_numvfs config files
for eth0 and eth2 will have the values 4 and 128 respectively
The SR-IOV numvfs configuration shall be persisted in /sbin/ifup-local
so that, during the bootup of the compute nodes, the numvfs
configuration will be restored.

Change-Id: I7450b904475bdf46498d9af633416b3eba12f761
Implements: blueprint tripleo-sriov
Signed-off-by: karthik s <ksundara@redhat.com>
lib/puppet/provider/sriov_vf_config/numvfs.rb [new file with mode: 0644]
lib/puppet/type/sriov_vf_config.rb [new file with mode: 0644]
manifests/host/sriov.pp [new file with mode: 0644]
manifests/host/sriov/numvfs_persistence.pp [new file with mode: 0644]
manifests/profile/base/neutron/sriov.pp
releasenotes/notes/sriov_numvfs-40564db9e1be589b.yaml [new file with mode: 0644]
spec/classes/tripleo_host_sriov_spec.rb [new file with mode: 0644]
spec/defines/tripleo_host_sriov_numvfs_persistence_spec.rb [new file with mode: 0644]
spec/unit/provider/sriov_vf_config/numvfs_spec.rb [new file with mode: 0644]
spec/unit/type/sriov_vf_config_spec.rb [new file with mode: 0644]