@Test public void testSetName() throws Exception { config.setName("Spine-R1"); assertTrue(config.name().isPresent()); assertThat(config.name().get(), is("Spine-R1")); }
public SegmentRoutingDeviceConfig setName(String name) { return (SegmentRoutingDeviceConfig) setOrClear(NAME, name); }
SegmentRoutingDeviceConfig extends Config<DeviceId> { public SegmentRoutingDeviceConfig setName(String name) { return (SegmentRoutingDeviceConfig) setOrClear(NAME, name); } }
SegmentRoutingDeviceConfig extends Config<DeviceId> { public SegmentRoutingDeviceConfig setName(String name) { return (SegmentRoutingDeviceConfig) setOrClear(NAME, name); }  }
SegmentRoutingDeviceConfig extends Config<DeviceId> { public SegmentRoutingDeviceConfig setName(String name) { return (SegmentRoutingDeviceConfig) setOrClear(NAME, name); }  @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 SegmentRoutingDeviceConfig setName(String name) { return (SegmentRoutingDeviceConfig) setOrClear(NAME, name); }  @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);  }