Search in sources :

Example 1 with NodeState

use of org.onosproject.openstacknode.api.NodeState in project onos by opennetworkinglab.

the class OpenstackNetworkingUtilTest method genGateway.

/**
 * Util for generating dummy gateway node.
 *
 * @param index dummy gateway number
 * @return dummy gateway node
 */
public OpenstackNode genGateway(int index) {
    Device intgBrg = InternalOpenstackNodeTest.createDevice(index);
    String hostname = "gateway-" + index;
    IpAddress ip = Ip4Address.valueOf("10.10.10." + index);
    NodeState state = NodeState.COMPLETE;
    String uplinkPort = "eth0";
    return InternalOpenstackNodeTest.createNode(hostname, OpenstackNode.NodeType.GATEWAY, intgBrg, ip, uplinkPort, state);
}
Also used : NodeState(org.onosproject.openstacknode.api.NodeState) Device(org.onosproject.net.Device) IpAddress(org.onlab.packet.IpAddress)

Aggregations

IpAddress (org.onlab.packet.IpAddress)1 Device (org.onosproject.net.Device)1 NodeState (org.onosproject.openstacknode.api.NodeState)1