Skipping the static routes with null nextHopIp in initStaticRib
@@ -644,6 +644,7 @@ public class VirtualRouter extends ComparableStructure<String> {
continue;
}
// interface route
+ if (sr.getNextHopIp() != null) {
if (sr.getNextHopIp().equals(Route.UNSET_ROUTE_NEXT_HOP_IP)) {
_staticInterfaceRib.mergeRoute(sr);
} else {
@@ -651,6 +652,7 @@ public class VirtualRouter extends ComparableStructure<String> {
}
}
}
+ }
public int propagateBgpRoutes(Map<String, Node> nodes, Map<Ip, Set<String>> ipOwners) {
int numRoutes = 0;
