Petr Jediný | 2418e4e | 2017-02-15 16:12:32 +0100 | [diff] [blame] | 1 | parameters: |
| 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 |