From 31f6afc34ce95220963f0abcff3744d8a3291a80 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 19 Sep 2020 21:57:45 +0200 Subject: ifconfig: T2653: cleanup VLAN interface comments --- python/vyos/ifconfig/interface.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'python/vyos/ifconfig/interface.py') 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 -- cgit v1.2.3