Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154948024
D39115.id119116.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
760 B
Referenced Files
None
Subscribers
None
D39115.id119116.diff
View Options
diff --git a/tests/sys/netinet/carp.sh b/tests/sys/netinet/carp.sh
--- a/tests/sys/netinet/carp.sh
+++ b/tests/sys/netinet/carp.sh
@@ -263,10 +263,35 @@
}
+atf_test_case "switch" "cleanup"
+switch_head()
+{
+ atf_set descr 'Switch between master and backup'
+ atf_set require.user root
+}
+
+switch_body()
+{
+ carp_init
+
+ epair=$(vnet_mkepair)
+
+ ifconfig ${epair}a up
+ ifconfig ${epair}a vhid 1 advskew 100 192.0.2.1/24
+ ifconfig ${epair}a vhid 1 state backup
+ ifconfig ${epair}a vhid 1 state master
+}
+
+switch_cleanup()
+{
+ vnet_cleanup
+}
+
atf_init_test_cases()
{
atf_add_test_case "basic_v4"
atf_add_test_case "basic_v6"
atf_add_test_case "negative_demotion"
atf_add_test_case "nd6_ns_source_mac"
+ atf_add_test_case "switch"
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 1, 6:33 AM (14 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32537331
Default Alt Text
D39115.id119116.diff (760 B)
Attached To
Mode
D39115: carp tests: test manually switch between backup and master
Attached
Detach File
Event Timeline
Log In to Comment