Skip to content

Commit 331c5a5

Browse files
[config]: Use mod_entry when editing VLAN_INTERFACE (sonic-net#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 <[email protected]>
1 parent 8c2980a commit 331c5a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/vlan.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def config_proxy_arp(db, vid, mode):
9292
if not clicommon.is_valid_vlan_interface(db.cfgdb, vlan):
9393
ctx.fail("Interface {} does not exist".format(vlan))
9494

95-
db.cfgdb.set_entry('VLAN_INTERFACE', vlan, {"proxy_arp": mode})
95+
db.cfgdb.mod_entry('VLAN_INTERFACE', vlan, {"proxy_arp": mode})
9696
click.echo('Proxy ARP setting saved to ConfigDB')
9797
restart_ndppd()
9898
#

0 commit comments

Comments
 (0)