summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-30 07:15:29 +0200
committerChristian Poessinger <christian@poessinger.com>2020-03-30 07:15:29 +0200
commit3a46ad00f55873e1372f24a01f3c2698e6568623 (patch)
tree40b2a847dad26c3e498fd1ac13f442bdbe48489f /python
parent5c0908bab363152a19f6aaf023b4852bd54a47ac (diff)
downloadvyos-1x-3a46ad00f55873e1372f24a01f3c2698e6568623.tar.gz
vyos-1x-3a46ad00f55873e1372f24a01f3c2698e6568623.zip
wireless: T2057: fix missing rename of set_state() -> set_admin_state()
Commit 627d1c704c83 ("ifconfig: T2057: explicity name state functions") introduced a new API naming, unfortunately this was nod added for wireless interfaces.
Diffstat (limited to 'python')
-rw-r--r--python/vyos/ifconfig/wireless.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/ifconfig/wireless.py b/python/vyos/ifconfig/wireless.py
index 932d07d01..946ae1642 100644
--- a/python/vyos/ifconfig/wireless.py
+++ b/python/vyos/ifconfig/wireless.py
@@ -47,7 +47,7 @@ class WiFiIf(Interface):
self._cmd(cmd)
# wireless interface is administratively down by default
- self.set_state('down')
+ self.set_admin_state('down')
def _delete(self):
cmd = 'iw dev {ifname} del' \