diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-07-30 19:52:52 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-07-30 19:52:52 +0200 |
commit | a295ec1fc4cb9cdbb0bd5efd7c8e72060ce036f5 (patch) | |
tree | a2ec2aa5cb6312bedad3bd7e597064f96b1733c3 /python/vyos | |
parent | 54227591a0eb3c7aa8c896c6ec8b1826ce070ddf (diff) | |
download | vyos-1x-a295ec1fc4cb9cdbb0bd5efd7c8e72060ce036f5.tar.gz vyos-1x-a295ec1fc4cb9cdbb0bd5efd7c8e72060ce036f5.zip |
bridge: T4565: is_member() must return the dict of the member interface
... otherwise functionality like bridge VLANs will loose configuration
on membe rinterface update (e.g. description)
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/configdict.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py index e9ef39930..20cc7de2a 100644 --- a/python/vyos/configdict.py +++ b/python/vyos/configdict.py @@ -222,8 +222,10 @@ def is_member(conf, interface, intftype=None): for intf in conf.list_nodes(base): member = base + [intf, 'member', 'interface', interface] if conf.exists(member): - if conf.exists(['interfaces', Section.section(interface), interface]): - ret_val.update({intf : {}}) + tmp = conf.get_config_dict(member, key_mangling=('-', '_'), + get_first_key=True, + no_tag_node_value_mangle=True) + ret_val.update({intf : tmp}) return ret_val |