@Test public void testIsValid() throws Exception { assertTrue(config.isValid()); assertFalse(invalidConfig.isValid()); }
@Override public boolean isValid() { return hasOnlyFields(VROUTER_MACS, VROUTER_ID, SUPPRESS_SUBNET, SUPPRESS_HOST_BY_PORT, SUPPRESS_HOST_BY_PROVIDER) && vRouterMacs() != null && vRouterId() != null && suppressSubnet() != null && suppressHostByPort() != null && suppressHostByProvider() != null; }
SegmentRoutingAppConfig extends Config<ApplicationId> { @Override public boolean isValid() { return hasOnlyFields(VROUTER_MACS, VROUTER_ID, SUPPRESS_SUBNET, SUPPRESS_HOST_BY_PORT, SUPPRESS_HOST_BY_PROVIDER) && vRouterMacs() != null && vRouterId() != null && suppressSubnet() != null && suppressHostByPort() != null && suppressHostByProvider() != null; } }
SegmentRoutingAppConfig extends Config<ApplicationId> { @Override public boolean isValid() { return hasOnlyFields(VROUTER_MACS, VROUTER_ID, SUPPRESS_SUBNET, SUPPRESS_HOST_BY_PORT, SUPPRESS_HOST_BY_PROVIDER) && vRouterMacs() != null && vRouterId() != null && suppressSubnet() != null && suppressHostByPort() != null && suppressHostByProvider() != null; }  }
SegmentRoutingAppConfig extends Config<ApplicationId> { @Override public boolean isValid() { return hasOnlyFields(VROUTER_MACS, VROUTER_ID, SUPPRESS_SUBNET, SUPPRESS_HOST_BY_PORT, SUPPRESS_HOST_BY_PROVIDER) && vRouterMacs() != null && vRouterId() != null && suppressSubnet() != null && suppressHostByPort() != null && suppressHostByProvider() != null; }  @Override boolean isValid(); Set<MacAddress> vRouterMacs(); SegmentRoutingAppConfig setVRouterMacs(Set<MacAddress> vRouterMacs); Optional<DeviceId> vRouterId(); SegmentRoutingAppConfig setVRouterId(DeviceId vRouterId); Set<ConnectPoint> suppressSubnet(); SegmentRoutingAppConfig setSuppressSubnet(Set<ConnectPoint> suppressSubnet); Set<ConnectPoint> suppressHostByPort(); SegmentRoutingAppConfig setSuppressHostByPort(Set<ConnectPoint> connectPoints); Set<String> suppressHostByProvider(); SegmentRoutingAppConfig setSuppressHostByProvider(Set<String> providers); @Override String toString(); }
SegmentRoutingAppConfig extends Config<ApplicationId> { @Override public boolean isValid() { return hasOnlyFields(VROUTER_MACS, VROUTER_ID, SUPPRESS_SUBNET, SUPPRESS_HOST_BY_PORT, SUPPRESS_HOST_BY_PROVIDER) && vRouterMacs() != null && vRouterId() != null && suppressSubnet() != null && suppressHostByPort() != null && suppressHostByProvider() != null; }  @Override boolean isValid(); Set<MacAddress> vRouterMacs(); SegmentRoutingAppConfig setVRouterMacs(Set<MacAddress> vRouterMacs); Optional<DeviceId> vRouterId(); SegmentRoutingAppConfig setVRouterId(DeviceId vRouterId); Set<ConnectPoint> suppressSubnet(); SegmentRoutingAppConfig setSuppressSubnet(Set<ConnectPoint> suppressSubnet); Set<ConnectPoint> suppressHostByPort(); SegmentRoutingAppConfig setSuppressHostByPort(Set<ConnectPoint> connectPoints); Set<String> suppressHostByProvider(); SegmentRoutingAppConfig setSuppressHostByProvider(Set<String> providers); @Override String toString();  }