@@ -20,6 +20,9 @@
# +---------------------------------------------------------------------------+
ALL_TESTS="
+ ping_ipv4
+ ping_ipv6
+ config_remaster
ping_ipv4
ping_ipv6
config_remove_pvid
@@ -28,6 +31,9 @@ ALL_TESTS="
config_add_pvid
ping_ipv4
ping_ipv6
+ config_late_pvid
+ ping_ipv4
+ ping_ipv6
"
NUM_NETIFS=4
source lib.sh
@@ -86,6 +92,15 @@ router_destroy()
ip link del dev br1
}
+config_remaster()
+{
+ log_info "Remaster bridge slave"
+
+ ip link set dev $swp1 nomaster
+ sleep 2
+ ip link set dev $swp1 master br1
+}
+
config_remove_pvid()
{
log_info "Remove PVID from the bridge"
@@ -102,6 +117,17 @@ config_add_pvid()
sleep 2
}
+config_late_pvid()
+{
+ log_info "Add bridge PVID after enslaving port"
+
+ ip link set dev $swp1 nomaster
+ ip link set dev br1 type bridge vlan_default_pvid 0
+ sleep 2
+ ip link set dev $swp1 master br1
+ ip link set dev br1 type bridge vlan_default_pvid 1
+}
+
setup_prepare()
{
h1=${NETIFS[p1]}