Closed
Description
Description
With the fix for skipping eth0 route, observed that default route is not deleted from HW in some cases. (PR - 1606).
Old issue - #6483
Steps to reproduce the issue:
- Learn default route via BGP
- Confirm default route for Mgmt IP is present in table default
- Shutdown all bgp interfaces
Describe the results you received:
Default route still present in APP_DB/ASIC_DB
Describe the results you expected:
Default route must be deleted
Output of show version
:
SONiC.20201231.39
Output of show techsupport
:
(paste your output here or download and attach the file here )
Additional information you deem important (e.g. issue happens only occasionally):
show ip route 0.0.0.0/0
Routing entry for 0.0.0.0/0
Known via "bgp", distance 20, metric 0, best
Last update 00:00:12 ago
* 10.0.0.57, via PortChannel0001, weight 1
* 10.0.0.59, via PortChannel0002, weight 1
* 10.0.0.61, via PortChannel0003, weight 1
* 10.0.0.63, via PortChannel0004, weight 1
redis-cli
127.0.0.1:6379> HGETALL ROUTE_TABLE:0.0.0.0/0
1) "nexthop"
2) "10.0.0.57,10.0.0.59,10.0.0.61,10.0.0.63"
3) "ifname"
config bgp shutdown all
Shutting down BGP session with neighbor 10.0.0.59...
Shutting down BGP session with neighbor fc00::72...
Shutting down BGP session with neighbor 10.0.0.63...
Shutting down BGP session with neighbor fc00::7a...
Shutting down BGP session with neighbor fc00::76...
Shutting down BGP session with neighbor 10.0.0.61...
Shutting down BGP session with neighbor 10.0.0.57...
Shutting down BGP session with neighbor fc00::7e...
admin@str2-7050cx3-acs-02:~/mux$ show ip route 0.0.0.0/0
Routing entry for 0.0.0.0/0
Known via "static", distance 200, metric 0, best
Last update 00:16:53 ago
* 10.3.146.1, via eth0, weight 1
$ redis-cli
127.0.0.1:6379> HGETALL ROUTE_TABLE:0.0.0.0/0
1) "nexthop"
2) "10.0.0.57,10.0.0.61"
3) "ifname"
4) "PortChannel0001,PortChannel0003"
127.0.0.1:6379>