diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-07 23:41:33 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-07 23:41:33 +0100 |
commit | 7a95aa238ba4d6743be645ffa3baef0e69251926 (patch) | |
tree | d40d9098f6b5bd27c82297077c0cf4bca0b690c8 /smoketest | |
parent | 551ae04df7f6ce8a6cdbdf9712b4eea5d9e0c2f3 (diff) | |
download | vyos-1x-7a95aa238ba4d6743be645ffa3baef0e69251926.tar.gz vyos-1x-7a95aa238ba4d6743be645ffa3baef0e69251926.zip |
smoketest: ethernet: verify() speed/duplex must both be auto or discrete
Diffstat (limited to 'smoketest')
-rwxr-xr-x | smoketest/scripts/cli/test_interfaces_ethernet.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_ethernet.py b/smoketest/scripts/cli/test_interfaces_ethernet.py index 0f3579c30..6b21853c3 100755 --- a/smoketest/scripts/cli/test_interfaces_ethernet.py +++ b/smoketest/scripts/cli/test_interfaces_ethernet.py @@ -136,6 +136,18 @@ class EthernetInterfaceTest(BasicInterfaceTest.BaseTest): # manually, else tearDown() will have problem in commit() self.session.delete(unknonw_interface) + def test_speed_duplex_verify(self): + for interface in self._interfaces: + self.session.set(self._base_path + [interface, 'speed', '1000']) + + # check validate() - if either speed or duplex is not auto, the + # other one must be manually configured, too + with self.assertRaises(ConfigSessionError): + self.session.commit() + self.session.set(self._base_path + [interface, 'duplex', 'full']) + + self.session.commit() + def test_eapol_support(self): for interface in self._interfaces: # Enable EAPoL |