BondingMixin

class lnst.Recipes.ENRT.BondingMixin.BondingMixin

Bases: object

The recipe mixin provides additional recipe parameters to configure the bonding device.

param bonding_mode:

(mandatory test parameter) the bonding mode to be configured on the bond0 device.

param miimon_value:

(mandatory test parameter) the miimon interval to be configured on the bond0 device.

param fail_over_mac:

the fail_over_mac mode to be configured on the bond0 device.

create_bond_devices(config: ~lnst.Recipes.ENRT.BaseEnrtRecipe.EnrtConfiguration, bond_devices_specs: dict[slice(<class 'str'>, dict[slice(<class 'str'>, list[lnst.Devices.RemoteDevice.RemoteDevice], None)], None)] = {}) None

The derived class should call:

config = super().test_wide_configuration()
self.create_bond_devices(
    config,
    {
        "host1": {
            "bond0": [host1.nic1, host1.nic2]
        },
        "host2": {
            "bond0": [host2.nic1, host2.nic2]
        }
    }
)

That would create bonding devices accessible by host1.bond0 and host2.bond0.

host1.bond0 would be created with ports host1.nic1 and host1.nic2 and host2.bond0 with ports host2.nic1 and host2.nic2.