Commit aae5bb8d authored by Petr Machata's avatar Petr Machata Committed by Jakub Kicinski

selftests: mlxsw: router_bridge_lag: Add a new selftest

Add a selftest to verify enslavement to a LAG with upper after fresh
devlink reload.
Signed-off-by: default avatarPetr Machata <petrm@nvidia.com>
Reviewed-by: default avatarDanielle Ratson <danieller@nvidia.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/373a7754daa4dac32759a45095f47b08a2a869c8.1691498735.git.petrm@nvidia.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent a76ca8af
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# Test enslavement to LAG with a clean slate.
# See $lib_dir/router_bridge_lag.sh for further details.
ALL_TESTS="
config_devlink_reload
config_enslave_h1
config_enslave_h2
config_enslave_h3
config_enslave_h4
config_enslave_swp1
config_enslave_swp2
config_enslave_swp3
config_enslave_swp4
config_wait
ping_ipv4
ping_ipv6
"
config_devlink_reload()
{
log_info "Devlink reload"
devlink_reload
}
config_enslave_h1()
{
config_enslave $h1 lag1
}
config_enslave_h2()
{
config_enslave $h2 lag4
}
config_enslave_h3()
{
config_enslave $h3 lag4
}
config_enslave_h4()
{
config_enslave $h4 lag1
}
lib_dir=$(dirname $0)/../../../net/forwarding
EXTRA_SOURCE="source $lib_dir/devlink_lib.sh"
source $lib_dir/router_bridge_lag.sh
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment