@Test public void testIsValidVIInterface() { assertFalse(isValidVIInterface(new InterfacesInterface(BRIDGE_NAME))); InterfacesInterface vxlan = new InterfacesInterface("vni4001"); vxlan.setVxlanId(10001); assertFalse(isValidVIInterface(vxlan)); assertTrue(isValidVIInterface(new InterfacesInterface("iface"))); }
@VisibleForTesting static boolean isValidVIInterface(InterfacesInterface iface) { return !iface.getName().equals(BRIDGE_NAME) && !InterfaceConverter.isVxlan(iface) ; }
CumulusConcatenatedConfiguration extends VendorConfiguration implements CumulusNodeConfiguration { @VisibleForTesting static boolean isValidVIInterface(InterfacesInterface iface) { return !iface.getName().equals(BRIDGE_NAME) && !InterfaceConverter.isVxlan(iface) ; } }
CumulusConcatenatedConfiguration extends VendorConfiguration implements CumulusNodeConfiguration { @VisibleForTesting static boolean isValidVIInterface(InterfacesInterface iface) { return !iface.getName().equals(BRIDGE_NAME) && !InterfaceConverter.isVxlan(iface) ; } CumulusConcatenatedConfiguration(); private  CumulusConcatenatedConfiguration(
      CumulusInterfacesConfiguration interfaces,
      CumulusFrrConfiguration frr,
      CumulusPortsConfiguration ports); }
CumulusConcatenatedConfiguration extends VendorConfiguration implements CumulusNodeConfiguration { @VisibleForTesting static boolean isValidVIInterface(InterfacesInterface iface) { return !iface.getName().equals(BRIDGE_NAME) && !InterfaceConverter.isVxlan(iface) ; } CumulusConcatenatedConfiguration(); private  CumulusConcatenatedConfiguration(
      CumulusInterfacesConfiguration interfaces,
      CumulusFrrConfiguration frr,
      CumulusPortsConfiguration ports); @Nonnull @Override String getHostname(); @Override void setHostname(@Nonnull String hostname); @Override void setVendor(ConfigurationFormat format); @Override List<Configuration> toVendorIndependentConfigurations(); @Nullable @Override String getVrfForVlan(@Nullable Integer bridgeAccessVlan); @Nonnull CumulusInterfacesConfiguration getInterfacesConfiguration(); @Nonnull CumulusFrrConfiguration getFrrConfiguration(); @Nonnull CumulusPortsConfiguration getPortsConfiguration(); @Override Map<String, IpCommunityList> getIpCommunityLists(); @Override Map<String, IpPrefixList> getIpPrefixLists(); @Override Map<String, RouteMap> getRouteMaps(); @Override BgpProcess getBgpProcess(); @Override Optional<OspfInterface> getOspfInterface(String ifaceName); @Override @Nullable Vrf getVrf(String vrfName); @Override @Nullable Map<String, Vxlan> getVxlans(); @Override @Nonnull Map<String, InterfaceClagSettings> getClagSettings(); @Override OspfProcess getOspfProcess(); static Builder builder(); }
CumulusConcatenatedConfiguration extends VendorConfiguration implements CumulusNodeConfiguration { @VisibleForTesting static boolean isValidVIInterface(InterfacesInterface iface) { return !iface.getName().equals(BRIDGE_NAME) && !InterfaceConverter.isVxlan(iface) ; } CumulusConcatenatedConfiguration(); private  CumulusConcatenatedConfiguration(
      CumulusInterfacesConfiguration interfaces,
      CumulusFrrConfiguration frr,
      CumulusPortsConfiguration ports); @Nonnull @Override String getHostname(); @Override void setHostname(@Nonnull String hostname); @Override void setVendor(ConfigurationFormat format); @Override List<Configuration> toVendorIndependentConfigurations(); @Nullable @Override String getVrfForVlan(@Nullable Integer bridgeAccessVlan); @Nonnull CumulusInterfacesConfiguration getInterfacesConfiguration(); @Nonnull CumulusFrrConfiguration getFrrConfiguration(); @Nonnull CumulusPortsConfiguration getPortsConfiguration(); @Override Map<String, IpCommunityList> getIpCommunityLists(); @Override Map<String, IpPrefixList> getIpPrefixLists(); @Override Map<String, RouteMap> getRouteMaps(); @Override BgpProcess getBgpProcess(); @Override Optional<OspfInterface> getOspfInterface(String ifaceName); @Override @Nullable Vrf getVrf(String vrfName); @Override @Nullable Map<String, Vxlan> getVxlans(); @Override @Nonnull Map<String, InterfaceClagSettings> getClagSettings(); @Override OspfProcess getOspfProcess(); static Builder builder();  }