Make sure that the
compute.yaml
file has a Linux bond:- type: linux_bond addresses: - ip_netmask: get_param: TenantIpSubnet name: bond0 bonding_options: get_param: BondInterfaceOvsOptions members: - type: sriov_pf name: enp3s0f0 link_mode: switchdev numvfs: 64 promisc: true use_dhcp: false - type: sriov_pf name: enp3s0f1 link_mode: switchdev numvfs: 64 promisc: true use_dhcp: false
Make sure the
/usr/share/openstack-tripleo-heat-templates/environments/ovs-hw-
offload.yaml
file has hw-offloading enabled:ComputeSriovParameters: OvsHwOffload: True
Configure the bonding option in the same file:
parameter_defaults: BondInterfaceOvsOptions: "mode=active-backup miimon=100"
The supported bonding modes for vf-lag are:
- Active-Backup
- Active-Active
- LACP
Following is an example of an uplink over a VLAN number 77 in a bond use:
- type: interface name: bond0.77 use_dhcp: false addresses: - ip_netmask: get_param: TenantIpSubnet
Following is an example of an uplink of a general interface:
- type: interface name: enp2s0f1.7 use_dhcp: false addresses: - ip_netmask: get_param: TenantIpSubnet