aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/reclass/classes/system/nova/compute/nfv/sriov.yml
blob: b93363c800b3c2e721b819b234dd03ac062bfd4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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