Skip to content

Commit 665a2f5

Browse files
committed
Updated code
1 parent 113c9fc commit 665a2f5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

scripts/hostcfgd

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,10 +1599,6 @@ class MgmtIfaceCfg(object):
15991599
if key in self.iface_config_data:
16001600
self.iface_config_data.pop(key)
16011601
syslog.syslog(syslog.LOG_INFO, f'MgmtIfaceCfg: Removed config for {iface}')
1602-
1603-
# This entry is created explicitly by sonic-gnmi, but during delete, this entry is not deleted.
1604-
# This causes the interface.j2 to think static ip is still configured
1605-
subprocess.run(['redis-cli', '-n', '4', 'DEL', f'MGMT_INTERFACE|{iface}', '', ''], check=True)
16061602
else:
16071603
syslog.syslog(syslog.LOG_DEBUG, f'MgmtIfaceCfg: No existing config to remove for {iface}')
16081604
# No change; no need to restart services

0 commit comments

Comments
 (0)