summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-08-30 12:15:30 +0200
committerChristian Poessinger <christian@poessinger.com>2019-08-30 12:15:30 +0200
commit83ded2c50e750acb73294ddde5383d8ffdf746ed (patch)
tree19e51dfeacbba28f5c24cd05154c9196a261d5c1 /python
parent17454c22554b6161dbc177f9e6b798ae6d73e7bc (diff)
downloadvyos-1x-83ded2c50e750acb73294ddde5383d8ffdf746ed.tar.gz
vyos-1x-83ded2c50e750acb73294ddde5383d8ffdf746ed.zip
Python/ifconfig: add @property statement on 'remove' call
Diffstat (limited to 'python')
-rw-r--r--python/vyos/interfaceconfig.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/vyos/interfaceconfig.py b/python/vyos/interfaceconfig.py
index 1d3215a0a..9fd0d83f9 100644
--- a/python/vyos/interfaceconfig.py
+++ b/python/vyos/interfaceconfig.py
@@ -55,7 +55,7 @@ class Interface:
self._ifname = str(ifname)
-
+ @property
def remove(self):
"""
Remove system interface
@@ -63,8 +63,8 @@ class Interface:
Example:
from vyos.interfaceconfig import Interface
- i = Interface('br111')
- i.remove()
+ i = Interface('br111', type='bridge')
+ i.remove
"""
# NOTE (Improvement):