-
- @Test
- public void testCreateRemoteDeviceId() {
- final Host host = new Host(new IpAddress(new Ipv4Address("127.0.0.1")));
- final NetconfNode netconfNode = new NetconfNodeBuilder().setHost(host).setPort(new PortNumber(9999)).build();
- final NodeId nodeId = new NodeId("testing-node");
- final RemoteDeviceId id = NetconfTopologyUtils.createRemoteDeviceId(nodeId, netconfNode);
-
- assertEquals("testing-node", id.getName());
- assertEquals(host, id.getHost());
- assertEquals(9999, id.getAddress().getPort());
- }
-