/** * Decide whether a default inter-area OSPF route should be originated by neighbor * * @param process the receiving node's {@link OspfProcess} * @param neighborProc The adjacent {@link OspfProcess} * @param neighborArea The propagator's OSPF area configuration * @return {@code true} iff the route should be considered for installation into the OSPF RIB */ public static boolean isOspfInterAreaDefaultOriginationAllowed( OspfProcess process, OspfProcess neighborProc, OspfArea area, OspfArea neighborArea) { return neighborProc.isAreaBorderRouter() && !process.isAreaBorderRouter() && neighborArea.getInjectDefaultRoute() && (neighborArea.getStubType() == StubType.STUB || (neighborArea.getStubType() == StubType.NSSA && neighborArea.getNssa().getDefaultOriginateType() == OspfDefaultOriginateType.INTER_AREA)); }
if (linkAreaNum != neighborRouteAreaNum && !neighborProc.isAreaBorderRouter()) { if (proc.isAreaBorderRouter() && neighborRoute.getNetwork().equals(Prefix.ZERO)) { return false;
if (!neighborProc.isAreaBorderRouter()) { return false;