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:38:49 +0100 |
commit | 038fb7a4dd7d22c9fc604811509f9a1477d4a89d (patch) | |
tree | 5679c70e0ff57e119830842b2632bc56fc519378 /python/vyos/ifconfig/wwan.py | |
parent | defff5c297651f8a9c310688668c8fd3a17247d7 (diff) | |
download | vyos-1x-038fb7a4dd7d22c9fc604811509f9a1477d4a89d.tar.gz vyos-1x-038fb7a4dd7d22c9fc604811509f9a1477d4a89d.zip |
wwan: T3620: fix commend in remove()
Improve commend in WWANIf.remove() - remove() was implemented in commit 61e4d75a
("wwan: T3620: place interface in A/D state when removed").
(cherry picked from commit d9a19b77a56031fa3fbfa43a85c8be7ee83ae3d7)
Diffstat (limited to 'python/vyos/ifconfig/wwan.py')
-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() |