diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/vyos/configdict.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py index ea244247c..e1d05c384 100644 --- a/python/vyos/configdict.py +++ b/python/vyos/configdict.py @@ -613,6 +613,16 @@ def get_interface_dict(config, base, ifname='', recursive_defaults=True, with_pk # Check vif, vif-s/vif-c VLAN interfaces for removal dict = get_removed_vlans(config, base + [ifname], dict) + + # Checks for the presence of static ARP entries on a given interface or VLAN + static_arp = config.get_config_dict( + ['protocols', 'static', 'arp', 'interface'], + key_mangling=('-', '_'), + get_first_key=True, + ) + if any(key == ifname or key.startswith(f'{ifname}.') for key in static_arp.keys()): + dict.update({'static_arp': {}}) + return ifname, dict def get_vlan_ids(interface): |
