diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-03-08 12:35:55 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-03-08 12:35:55 +0100 |
commit | 8f58dde4c89ae365d0b2cb15d105d8ead73ee0c9 (patch) | |
tree | 0131af4fd2b5fc18cff990df87e0c230f50c714c /python/vyos/configdict.py | |
parent | 4bda9cabba26176d5abdad6b65b793e429fb763c (diff) | |
download | vyos-1x-8f58dde4c89ae365d0b2cb15d105d8ead73ee0c9.tar.gz vyos-1x-8f58dde4c89ae365d0b2cb15d105d8ead73ee0c9.zip |
vrf: T31: support VRF usage on VLAN/VIF interfaces
Diffstat (limited to 'python/vyos/configdict.py')
-rw-r--r-- | python/vyos/configdict.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py index 80e199907..a1499479a 100644 --- a/python/vyos/configdict.py +++ b/python/vyos/configdict.py @@ -126,7 +126,8 @@ def vlan_to_dict(conf): 'ingress_qos': '', 'ingress_qos_changed': False, 'mac': '', - 'mtu': 1500 + 'mtu': 1500, + 'vrf': '' } # retrieve configured interface addresses if conf.exists('address'): @@ -194,6 +195,10 @@ def vlan_to_dict(conf): if conf.exists('mtu'): vlan['mtu'] = int(conf.return_value('mtu')) + # retrieve VRF instance + if conf.exists('vrf'): + vlan['vrf'] = conf.return_value('vrf') + # VLAN egress QoS if conf.exists('egress-qos'): vlan['egress_qos'] = conf.return_value('egress-qos') |