@Test public void testSetVRouterId() throws Exception { config.setVRouterId(VROUTER_ID_2); Optional<DeviceId> vRouterId = config.vRouterId(); assertTrue(vRouterId.isPresent()); assertThat(vRouterId.get(), is(VROUTER_ID_2)); }
public SegmentRoutingAppConfig setVRouterId(DeviceId vRouterId) { if (vRouterId == null) { object.remove(VROUTER_ID); } else { object.put(VROUTER_ID, vRouterId.toString()); } return this; }
SegmentRoutingAppConfig extends Config<ApplicationId> { public SegmentRoutingAppConfig setVRouterId(DeviceId vRouterId) { if (vRouterId == null) { object.remove(VROUTER_ID); } else { object.put(VROUTER_ID, vRouterId.toString()); } return this; } }
SegmentRoutingAppConfig extends Config<ApplicationId> { public SegmentRoutingAppConfig setVRouterId(DeviceId vRouterId) { if (vRouterId == null) { object.remove(VROUTER_ID); } else { object.put(VROUTER_ID, vRouterId.toString()); } return this; }  }
SegmentRoutingAppConfig extends Config<ApplicationId> { public SegmentRoutingAppConfig setVRouterId(DeviceId vRouterId) { if (vRouterId == null) { object.remove(VROUTER_ID); } else { object.put(VROUTER_ID, vRouterId.toString()); } return this; }  @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> { public SegmentRoutingAppConfig setVRouterId(DeviceId vRouterId) { if (vRouterId == null) { object.remove(VROUTER_ID); } else { object.put(VROUTER_ID, vRouterId.toString()); } return this; }  @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();  }