UseVfsMixin
- class lnst.Recipes.ENRT.UseVfsMixin.UseVfsMixin
Bases:
object
Mixin allows any ENRT recipe to use virtual function (VF) interfaces instead of physical interfaces defined by DeviceReq requirements.
VF interfaces are created automatically and DeviceReq handles are replaced with VF Device instances. This allows user to interact with the network interfaces without additional changes to the code of recipe.
Mixin provides two parameters:
- Parameters:
use_vfs – main boolean parameter to enable or disable (default) use of VFs
vf_trust – (optional) set the trust parameter of the used VFs, ‘on’ or ‘off’
There are some limitations, for example pause frames cannot be configured since the VF do not support these.
- property vf_trust_dev_list: list[RemoteDevice]
The property defines a list of devices for which the
vf_trust
setting should be applied. The mixin will automatically resolve the VF devices specified in the list to physical device and virtual function.