BondRecipe
- class lnst.Recipes.ENRT.BondRecipe.BondRecipe(**kwargs)
Bases:
BondingMixin,PerfReversibleFlowMixin,CommonHWSubConfigMixin,OffloadSubConfigMixin,BondOrTeamReq,BaremetalEnrtRecipeThis recipe implements Enrt testing for a network scenario that looks as follows
.--------. .----------------+ | | .-------+ switch +-------. | | '--------' | .-------------------. | | | bond0 | | | | .---'--. .---'--. | .---'--. .----|-| eth0 |-| eth1 |-|----. .----| eth0 |----. | | '------' '------' | | | '------' | | '-------------------' | | | | | | | | host1 | | host2 | '-----------------------------' '----------------'Refer to
BondingMixinfor parameters to configure the bonding device.All sub configurations are included via Mixin classes.
The actual test machinery is implemented in the
BaseEnrtRecipeclass.- test_wide_configuration(config)
Test wide configuration for this recipe involves creating a bonding device using the two matched physical devices as slaves on host1. The bonding mode and miimon interval is configured on the bonding device according to the recipe parameters. IPv4 and IPv6 addresses are added to the bonding device and to the matched ethernet device on host2.
host1.bond0 = 192.168.101.1/24 and fc00::1/64host2.eth0 = 192.168.101.2/24 and fc00::2/64
- generate_ping_endpoints(config)
The ping endpoints for this recipe are the configured bonding device on host1 and the matched ethernet device on host2.
Returned as:
[PingEndpoints(self.matched.host1.bond0, self.matched.host2.eth0)
- generate_perf_endpoints(config: EnrtConfiguration) list[Collection[EndpointPair[IPEndpoint]]]
The perf endpoints for this recipe are the configured bonding device on host1 and the matched ethernet device on host2. The traffic egresses the bonding device.
host1.bond0host2.eth0
- property offload_nics
The offload_nics property value for this scenario is a list containing the configured bonding device on host1 and the matched ethernet device on host2.
host1.bond0host2.eth0For detailed explanation of this property see
OffloadSubConfigMixinclass andOffloadSubConfigMixin.offload_nics.
- property mtu_hw_config_dev_list
The mtu_hw_config_dev_list property value for this scenario is a list containing the configured bonding device on host1 and the matched ethernet device on host2.
host1.bond0host2.eth0For detailed explanation of this property see
MTUHWConfigMixinclass andMTUHWConfigMixin.mtu_hw_config_dev_list.
- property dev_interrupt_hw_config_dev_list
The dev_interrupt_hw_config_dev_list property value for this scenario is a list containing the matched physical devices used to create the bonding device on host1 and the matched ethernet device on host2.
host1.eth0, host1.eth1host2.eth0For detailed explanation of this property see
DevInterruptHWConfigMixinclass andDevInterruptHWConfigMixin.dev_interrupt_hw_config_dev_list.
- property parallel_stream_qdisc_hw_config_dev_list
The parallel_stream_qdisc_hw_config_dev_list property value for this scenario is a list containing the matched physical devices used to create the bonding device on host1 and the matched ethernet device on host2.
host1.eth0, host.eth1host2.eth0For detailed explanation of this property see
ParallelStreamQDiscHWConfigMixinclass andParallelStreamQDiscHWConfigMixin.parallel_stream_qdisc_hw_config_dev_list.
- property pause_frames_dev_list
The pause_frames_dev_list property value for this scenario is a list containing the matched physical devices used to create the bonding device on host1 and the matched ethernet device on host2.
host1.eth0, host.eth1host2.eth0For detailed explanation of this property see
PauseFramesHWConfigMixinandPauseFramesHWConfigMixin.pause_frames_dev_list.