use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.node.attributes.ConnectionInfo in project genius by opendaylight.
the class OvsdbSouthboundTestUtil method getConnectionInfo.
public static ConnectionInfo getConnectionInfo(final String addressStr, final String portStr) {
InetAddress inetAddress = null;
try {
inetAddress = InetAddress.getByName(addressStr);
} catch (UnknownHostException e) {
LOG.warn("Could not allocate InetAddress", e);
}
IpAddress address = createIpAddress(inetAddress);
PortNumber port = new PortNumber(Integer.parseInt(portStr));
LOG.info("connectionInfo: {}", new ConnectionInfoBuilder().setRemoteIp(address).setRemotePort(port).build());
return new ConnectionInfoBuilder().setRemoteIp(address).setRemotePort(port).build();
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.node.attributes.ConnectionInfo in project genius by opendaylight.
the class OvsdbSouthboundTestUtil method connectOvsdbNode.
public Node connectOvsdbNode(final ConnectionInfo connectionInfo, long timeout) {
addOvsdbNode(connectionInfo, timeout);
Node node = getOvsdbNode(connectionInfo);
LOG.info("Connected to {}", connectionInfoToString(connectionInfo));
return node;
}
Aggregations