Commit 1ae65e3
authored
Adding cleanup for BGP_PEER_CONFIGURED_TABLE when config reload is done (#4034)
What I did
When config reload is done, BGP_PEER_CONFIGURED_TABLE is not cleared of pervious entries of BGP peers. Added logic to clean that up during config reload
How I did it
Connected to state db and cleared up all keys starting with BGP_PEER_CONFIGURED_TABLE|*
How to verify it
delete a peer from config_db.json and perform config reload. Peer should be deleted from state db table BGP_PEER_CONFIGURED_TABLE1 parent e6a909e commit 1ae65e3
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1575 | 1575 | | |
1576 | 1576 | | |
1577 | 1577 | | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
1578 | 1585 | | |
1579 | 1586 | | |
1580 | 1587 | | |
| |||
2210 | 2217 | | |
2211 | 2218 | | |
2212 | 2219 | | |
| 2220 | + | |
2213 | 2221 | | |
2214 | 2222 | | |
2215 | 2223 | | |
| |||
2347 | 2355 | | |
2348 | 2356 | | |
2349 | 2357 | | |
| 2358 | + | |
2350 | 2359 | | |
2351 | 2360 | | |
2352 | 2361 | | |
| |||
0 commit comments