Configuring a Static Route fails when there is no ASN field in the DEVICE_METADATA table of Config DB.
Just for configuring a Static Route, a BGP_ASN shouldn't have been required
admin@sonic:~$ <Remove ASN field from the Device Metadata>
admin@sonic:~$ sudo config route add prefix 20.0.0.0/24 nexthop 30.0.0.2
admin@sonic:~$ show ip route 20.0.0.0/24
% Network not in table
admin@sonic:~$ show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
F - PBR, f - OpenFabric,
> - selected route, * - FIB route, q - queued, r - rejected, b - backup
S>* 0.0.0.0/0 [200/0] via 10.210.24.1, eth0, weight 1, 00:10:58
C>* 10.210.24.0/22 is directly connected, eth0, 00:11:00
<Static Route Entry is written to CONFIG_DB but not applied>
The StaticRouteMgr throws the corresponding log.
Jun 30 03:10:15.313990 sonic DEBUG bgp#bgpcfgd: Not all dependencies are met for the Manager: <class 'bgpcfgd.managers_static_rt.StaticRouteMgr'>
(paste your output here or download and attach the file here )
Description
Configuring a Static Route fails when there is no ASN field in the DEVICE_METADATA table of Config DB.
Just for configuring a Static Route, a BGP_ASN shouldn't have been required
Steps to reproduce the issue:
The StaticRouteMgr throws the corresponding log.
Jun 30 03:10:15.313990 sonic DEBUG bgp#bgpcfgd: Not all dependencies are met for the Manager: <class 'bgpcfgd.managers_static_rt.StaticRouteMgr'>Describe the results you received:
Couldn't configure Static Route
Describe the results you expected:
Output of
show version:This can be seen with the versions built with these changes
7233
1534
Output of
show techsupport:Additional information you deem important (e.g. issue happens only occasionally):