@Test public void testInitialVxlanTopologyFromTable() { Layer2Vni.Builder vniSettingsBuilder = testBuilder() .setBumTransportIps(ImmutableSortedSet.of(MULTICAST_GROUP)) .setBumTransportMethod(BumTransportMethod.MULTICAST_GROUP) .setUdpPort(UDP_PORT) .setVni(VNI); Layer2Vni vniSettingsTail = vniSettingsBuilder.setSourceAddress(SRC_IP1).setVlan(VLAN1).build(); _v1.setLayer2Vnis(ImmutableSet.of(vniSettingsTail)); Layer2Vni vniSettingsHead = vniSettingsBuilder.setSourceAddress(SRC_IP2).setVlan(VLAN2).build(); _v2.setLayer2Vnis(ImmutableSet.of(vniSettingsHead)); Table<String, String, Set<Layer2Vni>> table = HashBasedTable.create(); table.put(_c1.getHostname(), _v1.getName(), ImmutableSet.of(vniSettingsTail)); table.put(_c2.getHostname(), _v2.getName(), ImmutableSet.of(vniSettingsHead)); VxlanNode nodeTail = VxlanNode.builder().setHostname(NODE1).setVni(VNI).build(); VxlanNode nodeHead = VxlanNode.builder().setHostname(NODE2).setVni(VNI).build(); assertThat( computeVxlanTopology(table).getGraph().edges(), equalTo(ImmutableSet.of(EndpointPair.unordered(nodeTail, nodeHead)))); }
public static @Nonnull VxlanTopology computeVxlanTopology( Map<String, Configuration> configurations) { return internalComputeVxlanTopology(computeVniSettingsTable(configurations)); }
VxlanTopologyUtils { public static @Nonnull VxlanTopology computeVxlanTopology( Map<String, Configuration> configurations) { return internalComputeVxlanTopology(computeVniSettingsTable(configurations)); } }
VxlanTopologyUtils { public static @Nonnull VxlanTopology computeVxlanTopology( Map<String, Configuration> configurations) { return internalComputeVxlanTopology(computeVniSettingsTable(configurations)); } private  VxlanTopologyUtils(); }
VxlanTopologyUtils { public static @Nonnull VxlanTopology computeVxlanTopology( Map<String, Configuration> configurations) { return internalComputeVxlanTopology(computeVniSettingsTable(configurations)); } private  VxlanTopologyUtils(); static @Nonnull VxlanTopology computeVxlanTopology(
      Map<String, Configuration> configurations); static @Nonnull VxlanTopology computeVxlanTopology(
      Table<String, String, ? extends Collection<Layer2Vni>> allVniSettings); static @Nonnull VxlanTopology prunedVxlanTopology(
      VxlanTopology initialVxlanTopology,
      Map<String, Configuration> configurations,
      TracerouteEngine tracerouteEngine); }
VxlanTopologyUtils { public static @Nonnull VxlanTopology computeVxlanTopology( Map<String, Configuration> configurations) { return internalComputeVxlanTopology(computeVniSettingsTable(configurations)); } private  VxlanTopologyUtils(); static @Nonnull VxlanTopology computeVxlanTopology(
      Map<String, Configuration> configurations); static @Nonnull VxlanTopology computeVxlanTopology(
      Table<String, String, ? extends Collection<Layer2Vni>> allVniSettings); static @Nonnull VxlanTopology prunedVxlanTopology(
      VxlanTopology initialVxlanTopology,
      Map<String, Configuration> configurations,
      TracerouteEngine tracerouteEngine);  }