summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-22 18:31:34 +0100
committerChristian Poessinger <christian@poessinger.com>2020-03-22 18:31:44 +0100
commit40540d9c27d781bbb5730d7d83a93edd2380acd3 (patch)
tree6359c0e75ad2625fd1f80f40ad80e7d9f112fb97
parent5fe2877e539d62294d29e485d1a613b70685c39f (diff)
downloadvyos-1x-40540d9c27d781bbb5730d7d83a93edd2380acd3.tar.gz
vyos-1x-40540d9c27d781bbb5730d7d83a93edd2380acd3.zip
wireless: add mandatory physical-interface
-rwxr-xr-xscripts/cli/test_interfaces_wireless.py21
1 files changed, 20 insertions, 1 deletions
diff --git a/scripts/cli/test_interfaces_wireless.py b/scripts/cli/test_interfaces_wireless.py
index 9fdc2d20a..f88533b94 100755
--- a/scripts/cli/test_interfaces_wireless.py
+++ b/scripts/cli/test_interfaces_wireless.py
@@ -24,7 +24,26 @@ class WirelessInterfaceTest(BasicInterfaceTest.BaseTest):
super().setUp()
self._base_path = ['interfaces', 'wireless']
- self._interfaces = ['wlan0', 'wlan1']
+ self._interfaces = ['wlan0']
+
+
+ def test_add_description(self):
+ """
+ A physical interface is mandatory thus we overwrite this function.
+ """
+ for intf in self._interfaces:
+ self.session.set(self._base_path + [intf, 'physical-device', 'phy0'])
+
+ super.test_add_description()
+
+ def test_add_address(self):
+ """
+ A physical interface is mandatory thus we overwrite this function.
+ """
+ for intf in self._interfaces:
+ self.session.set(self._base_path + [intf, 'physical-device', 'phy0'])
+
+ super.test_add_description()
if __name__ == '__main__':
os.system("modprobe mac80211_hwsim")