summaryrefslogtreecommitdiff
path: root/python/vyos/ifconfig/interface.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-09-19 21:57:45 +0200
committerChristian Poessinger <christian@poessinger.com>2020-09-19 21:57:45 +0200
commit31f6afc34ce95220963f0abcff3744d8a3291a80 (patch)
treea58f105a4dd5453575ca182bd8acfcdb7882457e /python/vyos/ifconfig/interface.py
parent41a8c45c6b188646d6c6ac97bfaa2dffaffe1653 (diff)
downloadvyos-1x-31f6afc34ce95220963f0abcff3744d8a3291a80.tar.gz
vyos-1x-31f6afc34ce95220963f0abcff3744d8a3291a80.zip
ifconfig: T2653: cleanup VLAN interface comments
Diffstat (limited to 'python/vyos/ifconfig/interface.py')
-rw-r--r--python/vyos/ifconfig/interface.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py
index 0774235b6..be97b411b 100644
--- a/python/vyos/ifconfig/interface.py
+++ b/python/vyos/ifconfig/interface.py
@@ -1077,8 +1077,7 @@ class VLANIf(Interface):
Example:
>>> from vyos.ifconfig import Interface
- >>> i = Interface('eth0')
- >>> i.remove()
+ >>> VLANIf('eth0.10').remove
"""
# Do we have sub interfaces (VLANs)? As interfaces need to be deleted
# "in order" starting from Q-in-Q we delete them first.
@@ -1117,7 +1116,7 @@ class VLANIf(Interface):
used by this class.
Example:
- >> dict = MACsecIf().get_config()
+ >> dict = VLANIf().get_config()
"""
config = deepcopy(__class__.default)
del config['type']
@@ -1129,8 +1128,8 @@ class VLANIf(Interface):
Example:
>>> from vyos.ifconfig import Interface
- >>> Interface('eth0').set_admin_state('down')
- >>> Interface('eth0').get_admin_state()
+ >>> Interface('eth0.10').set_admin_state('down')
+ >>> Interface('eth0.10').get_admin_state()
'down'
"""
# A VLAN interface can only be placed in admin up state when