From 331c5a5df0a28ddeedc2d6765bf2c0bbee34b3b8 Mon Sep 17 00:00:00 2001 From: Lawrence Lee Date: Mon, 10 May 2021 11:29:29 -0700 Subject: [PATCH] [config]: Use mod_entry when editing VLAN_INTERFACE (#1602) Replace set_entry with mod_entry when setting the proxy_arp value for a VLAN. Using set_entry will delete any other fields set for the key used, which is not desirable. Signed-off-by: Lawrence Lee --- config/vlan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/vlan.py b/config/vlan.py index 36ef3da0ac96..c3c29eb842d4 100644 --- a/config/vlan.py +++ b/config/vlan.py @@ -92,7 +92,7 @@ def config_proxy_arp(db, vid, mode): if not clicommon.is_valid_vlan_interface(db.cfgdb, vlan): ctx.fail("Interface {} does not exist".format(vlan)) - db.cfgdb.set_entry('VLAN_INTERFACE', vlan, {"proxy_arp": mode}) + db.cfgdb.mod_entry('VLAN_INTERFACE', vlan, {"proxy_arp": mode}) click.echo('Proxy ARP setting saved to ConfigDB') restart_ndppd() #