@Test public void testInitEigrpTopology() { Map<String, Configuration> configurations = configurationsForEigrpTopology(); NodeInterfacePair conf1Iface1 = NodeInterfacePair.of("conf1", "iface1"); NodeInterfacePair conf2Iface1 = NodeInterfacePair.of("conf2", "iface1"); Topology layer3Topology = new Topology( ImmutableSortedSet.of( new Edge(conf1Iface1, conf2Iface1), new Edge(conf2Iface1, conf1Iface1))); EigrpTopologyUtils.initNeighborConfigs(NetworkConfigurations.of(configurations)); EigrpTopology eigrpTopology = EigrpTopologyUtils.initEigrpTopology(configurations, layer3Topology); EigrpNeighborConfigId conf1Iface1Id = new EigrpNeighborConfigId(1L, "conf1", "iface1", "vrf"); EigrpNeighborConfigId conf1Iface2Id = new EigrpNeighborConfigId(1L, "conf1", "iface2", "vrf"); EigrpNeighborConfigId conf2Iface1Id = new EigrpNeighborConfigId(1L, "conf2", "iface1", "vrf"); EigrpNeighborConfigId conf2Iface2Id = new EigrpNeighborConfigId(1L, "conf2", "iface2", "vrf"); assertThat( eigrpTopology.getNetwork().nodes(), equalTo(ImmutableSet.of(conf1Iface1Id, conf1Iface2Id, conf2Iface1Id, conf2Iface2Id))); assertThat( eigrpTopology.getNetwork().edges(), equalTo( ImmutableSet.of( new EigrpEdge(conf1Iface1Id, conf2Iface1Id), new EigrpEdge(conf2Iface1Id, conf1Iface1Id)))); }
public static @Nonnull EigrpTopology initEigrpTopology( Map<String, Configuration> configurations, Topology topology) { NetworkConfigurations nc = NetworkConfigurations.of(configurations); MutableNetwork<EigrpNeighborConfigId, EigrpEdge> eigrpNetwork = collectNodes(nc); establishLinks(nc, eigrpNetwork, topology); trimLinks(eigrpNetwork); return new EigrpTopology(ImmutableNetwork.copyOf(eigrpNetwork)); }
EigrpTopologyUtils { public static @Nonnull EigrpTopology initEigrpTopology( Map<String, Configuration> configurations, Topology topology) { NetworkConfigurations nc = NetworkConfigurations.of(configurations); MutableNetwork<EigrpNeighborConfigId, EigrpEdge> eigrpNetwork = collectNodes(nc); establishLinks(nc, eigrpNetwork, topology); trimLinks(eigrpNetwork); return new EigrpTopology(ImmutableNetwork.copyOf(eigrpNetwork)); } }
EigrpTopologyUtils { public static @Nonnull EigrpTopology initEigrpTopology( Map<String, Configuration> configurations, Topology topology) { NetworkConfigurations nc = NetworkConfigurations.of(configurations); MutableNetwork<EigrpNeighborConfigId, EigrpEdge> eigrpNetwork = collectNodes(nc); establishLinks(nc, eigrpNetwork, topology); trimLinks(eigrpNetwork); return new EigrpTopology(ImmutableNetwork.copyOf(eigrpNetwork)); }  }
EigrpTopologyUtils { public static @Nonnull EigrpTopology initEigrpTopology( Map<String, Configuration> configurations, Topology topology) { NetworkConfigurations nc = NetworkConfigurations.of(configurations); MutableNetwork<EigrpNeighborConfigId, EigrpEdge> eigrpNetwork = collectNodes(nc); establishLinks(nc, eigrpNetwork, topology); trimLinks(eigrpNetwork); return new EigrpTopology(ImmutableNetwork.copyOf(eigrpNetwork)); }  static @Nonnull EigrpTopology initEigrpTopology(
      Map<String, Configuration> configurations, Topology topology); static void initNeighborConfigs(NetworkConfigurations configurations); }
EigrpTopologyUtils { public static @Nonnull EigrpTopology initEigrpTopology( Map<String, Configuration> configurations, Topology topology) { NetworkConfigurations nc = NetworkConfigurations.of(configurations); MutableNetwork<EigrpNeighborConfigId, EigrpEdge> eigrpNetwork = collectNodes(nc); establishLinks(nc, eigrpNetwork, topology); trimLinks(eigrpNetwork); return new EigrpTopology(ImmutableNetwork.copyOf(eigrpNetwork)); }  static @Nonnull EigrpTopology initEigrpTopology(
      Map<String, Configuration> configurations, Topology topology); static void initNeighborConfigs(NetworkConfigurations configurations);  }