@Override protected Set<String> featureValueOf(OspfArea actual) { return actual.getInterfaces(); } }
/** Initialize interface costs for all interfaces that belong to this process */ public void initInterfaceCosts(Configuration c) { _areas.values().stream() .flatMap(a -> a.getInterfaces().stream()) .map(interfaceName -> c.getAllInterfaces().get(interfaceName)) .filter(Interface::getActive) .forEach(i -> i.setOspfCost(computeInterfaceCost(i))); }
.forEach( area -> area.getInterfaces() .forEach( ifaceName ->
long areaNum = e3.getKey(); OspfArea area = e3.getValue(); for (String ifaceName : area.getInterfaces()) { Interface iface = c.getAllInterfaces().get(ifaceName); if (iface.getOspfPassive()) { && remoteArea.getInterfaces().contains(remoteIfaceName)) { Ip remoteIp = remoteIface.getAddress().getIp(); IpLink localKey = new IpLink(localIp, remoteIp);
OspfProcess ospf = conf.getDefaultVrf().getOspfProcess(); for (OspfArea area : ospf.getAreas().values()) { for (String ifaceName : area.getInterfaces()) { Interface iface = conf.getAllInterfaces().get(ifaceName); if (iface.getActive() && iface.getOspfEnabled()) {
.forEach( (areaNum, area) -> { for (String ifaceName : area.getInterfaces()) { Interface iface = _c.getAllInterfaces().get(ifaceName); if (iface.getActive()) {
.forEach( area -> area.getInterfaces() .forEach( ifaceName ->