blob: b93363c800b3c2e721b819b234dd03ac062bfd4a [file] [log] [blame]
Petr Jediný2418e4e2017-02-15 16:12:32 +01001parameters:
2 _param:
3 sriov_nic01_physical_network: physnet1
4 sriov_unsafe_interrupts: False
5 nova:
6 compute:
7 sriov:
8 sriov_nic01:
9 devname: ${_param:sriov_nic01_device_name}
10 physical_network: ${_param:sriov_nic01_physical_network}
11 linux:
12 system:
13 kernel:
14 sriov: True
15 unsafe_interrupts: ${_param:sriov_unsafe_interrupts}
16 rc:
17 local: |
18 #!/bin/sh -e
19 # Enabling ${_param:sriov_nic01_numvfs} VFs on ${_param:sriov_nic01_device_name} PF
20 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
21 exit 0