diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-11-19 07:36:48 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-11-19 07:36:48 +0100 |
commit | d9a19b77a56031fa3fbfa43a85c8be7ee83ae3d7 (patch) | |
tree | 36c33144e428a5cc7fe121efd3df22ad2a5b97e3 /python | |
parent | c0bf019e9fc6251ce43c57903b85115f0e3ab2bc (diff) | |
download | vyos-1x-d9a19b77a56031fa3fbfa43a85c8be7ee83ae3d7.tar.gz vyos-1x-d9a19b77a56031fa3fbfa43a85c8be7ee83ae3d7.zip |
wwan: T3620: fix commend in remove()
Improve commend in WWANIf.remove() - remove() was implemented in commit d588a968
("wwan: T3620: place interface in A/D state when removed").
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/ifconfig/wwan.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/python/vyos/ifconfig/wwan.py b/python/vyos/ifconfig/wwan.py index 295f8bc2e..845c9bef9 100644 --- a/python/vyos/ifconfig/wwan.py +++ b/python/vyos/ifconfig/wwan.py @@ -29,8 +29,8 @@ class WWANIf(Interface): def remove(self): """ - Remove interface from operating system. Removing the interface - deconfigures all assigned IP addresses. + Remove interface from config. Removing the interface deconfigures all + assigned IP addresses. Example: >>> from vyos.ifconfig import WWANIf >>> i = WWANIf('wwan0') @@ -38,7 +38,8 @@ class WWANIf(Interface): """ if self.exists(self.ifname): - # interface is always A/D down. It needs to be enabled explicitly + # interface is placed in A/D state when removed from config! It + # will remain visible for the operating system. self.set_admin_state('down') super().remove() |