Skip to content

Commit 2a9aea6

Browse files
authored
[202012][dualtor] Fix config_db.json path for config-reload (sonic-net#2142)
Fix the path to config_db.json in config-reload for dual-tor device. Presently, there exists a typo in config_db.json filename that is sent as an argument to filter_fdb_entries. This causes failure during config reload. Related PR: sonic-net#1465
1 parent e800fa8 commit 2a9aea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ def cache_arp_entries():
937937
if not cache_err:
938938
fdb_cache_file = os.path.join(cache_dir, 'fdb.json')
939939
arp_cache_file = os.path.join(cache_dir, 'arp.json')
940-
fdb_filter_cmd = '/usr/local/bin/filter_fdb_entries -f {} -a {} -c /etc/sonic/configdb.json'.format(fdb_cache_file, arp_cache_file)
940+
fdb_filter_cmd = '/usr/local/bin/filter_fdb_entries -f {} -a {} -c /etc/sonic/config_db.json'.format(fdb_cache_file, arp_cache_file)
941941
filter_proc = subprocess.Popen(fdb_filter_cmd, shell=True, text=True, stdout=subprocess.PIPE)
942942
_, filter_err = filter_proc.communicate()
943943
if filter_err:

0 commit comments

Comments
 (0)