@Test public void testName() throws Exception { assertTrue(config.name().isPresent()); assertThat(config.name().get(), is("Leaf-R1")); }
public Optional<String> name() { String name = get(NAME, null); return name != null ? Optional.of(name) : Optional.empty(); }
SegmentRoutingDeviceConfig extends Config<DeviceId> { public Optional<String> name() { String name = get(NAME, null); return name != null ? Optional.of(name) : Optional.empty(); } }
SegmentRoutingDeviceConfig extends Config<DeviceId> { public Optional<String> name() { String name = get(NAME, null); return name != null ? Optional.of(name) : Optional.empty(); }  }
SegmentRoutingDeviceConfig extends Config<DeviceId> { public Optional<String> name() { String name = get(NAME, null); return name != null ? Optional.of(name) : Optional.empty(); }  @Override boolean isValid(); Optional<String> name(); SegmentRoutingDeviceConfig setName(String name); Ip4Address routerIp(); SegmentRoutingDeviceConfig setRouterIp(String ip); MacAddress routerMac(); SegmentRoutingDeviceConfig setRouterMac(String mac); int nodeSid(); SegmentRoutingDeviceConfig setNodeSid(int sid); Boolean isEdgeRouter(); SegmentRoutingDeviceConfig setIsEdgeRouter(boolean isEdgeRouter); Map<Integer, Set<Integer>> adjacencySids(); SegmentRoutingDeviceConfig setAdjacencySids(Map<Integer, Set<Integer>> adjacencySids); }
SegmentRoutingDeviceConfig extends Config<DeviceId> { public Optional<String> name() { String name = get(NAME, null); return name != null ? Optional.of(name) : Optional.empty(); }  @Override boolean isValid(); Optional<String> name(); SegmentRoutingDeviceConfig setName(String name); Ip4Address routerIp(); SegmentRoutingDeviceConfig setRouterIp(String ip); MacAddress routerMac(); SegmentRoutingDeviceConfig setRouterMac(String mac); int nodeSid(); SegmentRoutingDeviceConfig setNodeSid(int sid); Boolean isEdgeRouter(); SegmentRoutingDeviceConfig setIsEdgeRouter(boolean isEdgeRouter); Map<Integer, Set<Integer>> adjacencySids(); SegmentRoutingDeviceConfig setAdjacencySids(Map<Integer, Set<Integer>> adjacencySids);  }