Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added check for inband ports in ip route result parse (#4728)
What is the motivation for this PR? In T2 topology for a VOQ Chassis, if the linecard learns the default route from eBGP, an snmp entry is created in the ipCidrRouteTable But if the linecard learns the default route through an in-band port (example a linecard connecting to only T1 VM's), there will not be any entry created in the snmp ipCidrRouteTable. This is per SONiC design as defined in the following code in rfc4292.py if (ifn in port_table and multi_asic.PORT_ROLE in port_table[ifn] and port_table[ifn][multi_asic.PORT_ROLE] == multi_asic.INTERNAL_PORT): continue Thus, the test case fails. How did you do it? Added a condition to check if the output from "show ip route " command has internal inband or backplane port in it, and if so don't add it to list of nexthops to check. How did you verify/test it? ran test_snmp_default_route on VOQ Chassis
- Loading branch information