]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: add test case for issue #32186 37808/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 11 Jun 2025 08:28:28 +0000 (17:28 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 11 Jun 2025 08:32:46 +0000 (17:32 +0900)
The reporter said that the issue is caused by BindCarrier=, but
I cannot reproduce it. Anyway, let's test it.

test/test-network/conf/25-bond99.network
test/test-network/systemd-networkd-tests.py

index 09da6a0c3530a0cf05f58987cac24ed77d3d6bc8..086a0d0b9b1627610c0075c450ddc4f3b7af8b96 100644 (file)
@@ -5,3 +5,4 @@ Name=bond99
 [Network]
 IPv6AcceptRA=no
 Address=192.168.123.45/24
+BindCarrier=dummy98 test1
index 7c56110edeca02a04b6c34f42ae08066639bc2f7..8ecae739664fe394d8f3d0f08d8462b231861a7c 100755 (executable)
@@ -5862,6 +5862,10 @@ class NetworkdBondTests(unittest.TestCase, Utilities):
         print(output)
         self.assertRegex(output, 'MASTER,UP,LOWER_UP')
 
+        # test case for issue #32186
+        restart_networkd()
+        self.wait_online('dummy98:enslaved', 'test1:enslaved', 'bond99:routable')
+
         self.wait_operstate('dummy98', 'enslaved')
         self.wait_operstate('test1', 'enslaved')
         self.wait_operstate('bond99', 'routable')