Skip to content

Commit 5b194aa

Browse files
author
Jie Cai
committed
Merged PR 7177841: fix thread exist when key not exists
fix thread exist when key not exists Public: sonic-net#12769
2 parents 80237b9 + 42af278 commit 5b194aa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sonic-bgpcfgd/bgpcfgd/static_rt_timer.py

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ def __init__(self):
1616

1717
def set_timer(self):
1818
""" Check for custom route expiry time in STATIC_ROUTE:EXPIRY_TIME """
19+
keys = self.db.keys(self.db.APPL_DB, "STATIC_ROUTE_EXPIRY_TIME")
20+
if len(keys) == 0:
21+
return
1922
timer = self.db.get(self.db.APPL_DB, "STATIC_ROUTE_EXPIRY_TIME", "time")
2023
if timer is not None:
2124
timer = int(timer)

0 commit comments

Comments
 (0)