summaryrefslogtreecommitdiff
path: root/python/vyos/configdict.py
diff options
context:
space:
mode:
authorJernej Jakob <jernej.jakob@gmail.com>2020-05-03 13:28:11 +0200
committerJernej Jakob <jernej.jakob@gmail.com>2020-05-04 20:58:06 +0200
commitc1ad2a6461fc2e767d69567be9647150c3310569 (patch)
tree52103aab1a34198fcf990d2a1c8c3ce4858384e0 /python/vyos/configdict.py
parent9bfbb24ae649d7cedc2002f7df95a0aa0fececdc (diff)
downloadvyos-1x-c1ad2a6461fc2e767d69567be9647150c3310569.tar.gz
vyos-1x-c1ad2a6461fc2e767d69567be9647150c3310569.zip
configdict: T2241: get interface name in intf/vlan_from_dict
This is needed as later functions depend on it
Diffstat (limited to 'python/vyos/configdict.py')
-rw-r--r--python/vyos/configdict.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py
index 943092ceb..cd3364c94 100644
--- a/python/vyos/configdict.py
+++ b/python/vyos/configdict.py
@@ -23,6 +23,7 @@ from copy import deepcopy
from vyos import ConfigError
from vyos.ifconfig import Interface
+from vyos.util import ifname_from_config
def retrieve_config(path_hash, base_path, config):
@@ -197,6 +198,7 @@ def intf_to_dict(conf, default):
"""
intf = deepcopy(default)
+ intf['intf'] = ifname_from_config(conf)
# retrieve configured interface addresses
if conf.exists('address'):