private void initRemoteEigrpNeighbors( Map<String, Configuration> configurations, Topology topology) { if (!_remoteEigrpNeighborsInitialized) { _eigrpTopology = EigrpTopology.initEigrpTopology(configurations, topology); _remoteEigrpNeighborsInitialized = true; } }
public static Builder builder() { return new Builder(); }
/** The composite cost, after scaling for RIB */ @JsonIgnore public long getRibMetric() { // TODO make configurable using 'metric rib-scale' int namedRibScale = 128; return getCost() / ((_mode == EigrpProcessMode.NAMED) ? namedRibScale : 1); }
@Override protected Long featureValueOf(EigrpProcess actual) { return actual.getAsn(); } }
@Override @Nonnull protected EigrpMetric featureValueOf(EigrpInterfaceSettings actual) { return actual.getMetric(); } }
@Override @Nonnull protected Boolean featureValueOf(EigrpInterfaceSettings actual) { return actual.getPassive(); } }
@Override public final int hashCode() { return Objects.hash(_admin, _metric.hashCode(), _network, _nextHopIp, _nextHopInterface); }
public static Builder builder() { return new Builder(); }
@Override public final Long getMetric() { return _metric.getRibMetric(); }
public static Builder builder() { return new Builder(); }
@Override public final int hashCode() { return Objects.hash( _classicBandwidth, _classicDelay, _mode.ordinal(), _namedBandwidth, _namedDelay); }
@Nullable public EigrpMetric build() { Double delay = _delay == null ? _defaultDelay : _delay; Double bandwidth = _bandwidth == null ? _defaultBandwidth : _bandwidth; if (bandwidth == null || bandwidth == 0D || delay == null || _mode == null) { return null; } return new EigrpMetric(bandwidth, delay, _mode); }
@Nullable public EigrpInterfaceSettings build() { if (_asn == null || _metric == null) { return null; } return new EigrpInterfaceSettings(_asn, _enabled, _metric, _passive); }
/** The composite cost */ @JsonIgnore public long getCost() { if (_cost == null) { _cost = computeCost(); } return _cost; }
@Override protected Ip featureValueOf(EigrpProcess actual) { return actual.getRouterId(); } }
@Override protected EigrpProcessMode featureValueOf(EigrpProcess actual) { return actual.getMode(); } }
@Override @Nonnull protected Double featureValueOf(EigrpMetric actual) { return actual.getBandwidth(); } }
@JsonIgnore public final long getCompositeCost() { return _metric.getCost(); }
@Override public final int hashCode() { return hash( _admin, _destinationAsn, _metric.hashCode(), _network, _nextHopIp, _nextHopInterface); }