Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110224354
D25084.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D25084.diff
View Options
Index: head/tests/sys/net/if_bridge_test.sh
===================================================================
--- head/tests/sys/net/if_bridge_test.sh
+++ head/tests/sys/net/if_bridge_test.sh
@@ -72,7 +72,6 @@
{
atf_set descr 'Spanning tree test'
atf_set require.user root
- atf_set require.progs jq
}
stp_body()
@@ -91,13 +90,11 @@
vnet_mkjail a ${bridge_a} ${epair_one}a ${epair_two}a
vnet_mkjail b ${bridge_b} ${epair_one}b ${epair_two}b
- jexec a ifconfig ${bridge_a} up
jexec a ifconfig ${epair_one}a up
jexec a ifconfig ${epair_two}a up
jexec a ifconfig ${bridge_a} addm ${epair_one}a
jexec a ifconfig ${bridge_a} addm ${epair_two}a
- jexec b ifconfig ${bridge_b} up
jexec b ifconfig ${epair_one}b up
jexec b ifconfig ${epair_two}b up
jexec b ifconfig ${bridge_b} addm ${epair_one}b
@@ -105,22 +102,14 @@
jexec a ifconfig ${bridge_a} 192.0.2.1/24
- # Give the interfaces some time to come up and pass some traffic
- sleep 5
-
- # Confirm that there's looping traffic
- nbr=$(jexec a netstat -I ${bridge_a} --libxo json \
- | jq ".statistics.interface[0].\"received-packets\"")
- if [ ${nbr} -lt 100 ]
- then
- atf_fail "Expected bridging loop, but found very few packets."
- fi
-
# Enable spanning tree
jexec a ifconfig ${bridge_a} stp ${epair_one}a
jexec a ifconfig ${bridge_a} stp ${epair_two}a
jexec b ifconfig ${bridge_b} stp ${epair_one}b
jexec b ifconfig ${bridge_b} stp ${epair_two}b
+
+ jexec b ifconfig ${bridge_b} up
+ jexec a ifconfig ${bridge_a} up
# Give STP time to do its thing
sleep 5
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 16, 8:55 AM (14 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16671661
Default Alt Text
D25084.diff (1 KB)
Attached To
Mode
D25084: bridge tests: Avoid building a switching loop
Attached
Detach File
Event Timeline
Log In to Comment