summaryrefslogtreecommitdiff
path: root/python/vyos/ifconfig/interface.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-26 16:57:36 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-26 16:57:36 +0200
commit3c123dba16e4aeece5e920f03f832c6cd8ddf2e1 (patch)
tree2f4010ce149a4752a99411709b5b4d078fe984e2 /python/vyos/ifconfig/interface.py
parent65130073eec20cdbb701b0f15a5a2e2676c96039 (diff)
downloadvyos-1x-3c123dba16e4aeece5e920f03f832c6cd8ddf2e1.tar.gz
vyos-1x-3c123dba16e4aeece5e920f03f832c6cd8ddf2e1.zip
ifconfig: T2653: move loopback interface to get_config_dict()
Diffstat (limited to 'python/vyos/ifconfig/interface.py')
-rw-r--r--python/vyos/ifconfig/interface.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py
index 19dc6e5bc..a9af6ffdf 100644
--- a/python/vyos/ifconfig/interface.py
+++ b/python/vyos/ifconfig/interface.py
@@ -760,7 +760,7 @@ class Interface(Control):
return True
def update(self, config):
- """ A general helper function which works on a dictionary retrived by
+ """ General helper function which works on a dictionary retrived by
get_config_dict(). It's main intention is to consolidate the scattered
interface setup code and provide a single point of entry when workin
on any interface. """
@@ -794,5 +794,8 @@ class Interface(Control):
self.set_vrf(config.get('vrf', ''))
# Interface administrative state
- state = 'down' if 'disable' in config.items() else 'up'
+ state = 'down' if 'disable' in config.keys() else 'up'
self.set_admin_state(state)
+
+ import pprint
+ pprint.pprint(config)