diff options
author | Michael Polenchuk <mpolenchuk@mirantis.com> | 2017-05-24 12:44:05 +0400 |
---|---|---|
committer | Michael Polenchuk <mpolenchuk@mirantis.com> | 2017-05-24 12:47:57 +0400 |
commit | a6daf4ece3f05600ad66fea55c5220d07a71cef1 (patch) | |
tree | 988e0e370b7c2683f10eff189f2ba7b276b24923 /mcp/reclass/classes/system/nova/compute/nfv/sriov.yml | |
parent | 7b4fbdd9be1a234c345b21ebf0eafcf7f5187f26 (diff) |
[mcp] Bring in reclass system salt models
Change-Id: I1a865b7524f3a5242544e60e6b36b1092721c58b
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
Diffstat (limited to 'mcp/reclass/classes/system/nova/compute/nfv/sriov.yml')
-rw-r--r-- | mcp/reclass/classes/system/nova/compute/nfv/sriov.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mcp/reclass/classes/system/nova/compute/nfv/sriov.yml b/mcp/reclass/classes/system/nova/compute/nfv/sriov.yml new file mode 100644 index 000000000..b93363c80 --- /dev/null +++ b/mcp/reclass/classes/system/nova/compute/nfv/sriov.yml @@ -0,0 +1,21 @@ +parameters: + _param: + sriov_nic01_physical_network: physnet1 + sriov_unsafe_interrupts: False + nova: + compute: + sriov: + sriov_nic01: + devname: ${_param:sriov_nic01_device_name} + physical_network: ${_param:sriov_nic01_physical_network} + linux: + system: + kernel: + sriov: True + unsafe_interrupts: ${_param:sriov_unsafe_interrupts} + rc: + local: | + #!/bin/sh -e + # Enabling ${_param:sriov_nic01_numvfs} VFs on ${_param:sriov_nic01_device_name} PF + echo ${_param:sriov_nic01_numvfs} > /sys/class/net/${_param:sriov_nic01_device_name}/device/sriov_numvfs; sleep 2; ip link set ${_param:sriov_nic01_device_name} up + exit 0
\ No newline at end of file |