Skip to content

Commit f409b3d

Browse files
jcaiMRyxieca
authored andcommitted
change static rt expiry timer max value (sonic-net#14397)
Why I did it Change static route expiry timer max timeout value from 1800 to 172800. To keep same value range as defined in sonic-restapi/sonic_api.yaml How I did it How to verify it apply change to bgpcfd, restart bgp container see if the value take action.
1 parent 59aac9a commit f409b3d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/sonic-bgpcfgd/bgpcfgd/static_rt_timer.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ def __init__(self):
1212

1313
DEFAULT_TIMER = 180
1414
DEFAULT_SLEEP = 60
15-
MAX_TIMER = 1800
15+
# keep same range as value defined in sonic-restapi/sonic_api.yaml
16+
MAX_TIMER = 172800
1617

1718
def set_timer(self):
1819
""" Check for custom route expiry time in STATIC_ROUTE_EXPIRY_TIME """
@@ -55,4 +56,5 @@ def run(self):
5556
else:
5657
time.sleep(self.DEFAULT_SLEEP)
5758
if time.time() - self.start >= self.DEFAULT_TIMER:
58-
self.alarm()
59+
self.alarm()
60+

0 commit comments

Comments
 (0)