Commit 917b149a authored by Ido Schimmel's avatar Ido Schimmel Committed by Paolo Abeni

selftests: forwarding: Disable learning before link up

Disable learning before bringing the bridge port up in order to avoid
the FDB being populated and the test failing.

Before:

 # ./bridge_locked_port.sh
 RTNETLINK answers: File exists
 TEST: Locked port ipv4                                              [FAIL]
         Ping worked after locking port, but before adding FDB entry
 TEST: Locked port ipv6                                              [ OK ]
 TEST: Locked port vlan                                              [ OK ]

After:

 # ./bridge_locked_port.sh
 TEST: Locked port ipv4                                              [ OK ]
 TEST: Locked port ipv6                                              [ OK ]
 TEST: Locked port vlan                                              [ OK ]

Fixes: b2b681a4 ("selftests: forwarding: tests of locked port feature")
Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 4723832f
...@@ -41,11 +41,11 @@ switch_create() ...@@ -41,11 +41,11 @@ switch_create()
ip link set dev $swp1 master br0 ip link set dev $swp1 master br0
ip link set dev $swp2 master br0 ip link set dev $swp2 master br0
bridge link set dev $swp1 learning off
ip link set dev br0 up ip link set dev br0 up
ip link set dev $swp1 up ip link set dev $swp1 up
ip link set dev $swp2 up ip link set dev $swp2 up
bridge link set dev $swp1 learning off
} }
switch_destroy() switch_destroy()
......
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