Replaced the usage of IpPrefix with IpAddress in the context of
Controller Nodes.
Change-Id: Id2b25fb071bb20541db3f77b7afefe886520538e
diff --git a/cli/src/main/java/org/onlab/onos/cli/NodeAddCommand.java b/cli/src/main/java/org/onlab/onos/cli/NodeAddCommand.java
index aec77ff..e54081c 100644
--- a/cli/src/main/java/org/onlab/onos/cli/NodeAddCommand.java
+++ b/cli/src/main/java/org/onlab/onos/cli/NodeAddCommand.java
@@ -22,7 +22,7 @@
import org.apache.karaf.shell.commands.Command;
import org.onlab.onos.cluster.ClusterAdminService;
import org.onlab.onos.cluster.NodeId;
-import org.onlab.packet.IpPrefix;
+import org.onlab.packet.IpAddress;
/**
* Adds a new controller cluster node.
@@ -46,7 +46,7 @@
@Override
protected void execute() {
ClusterAdminService service = get(ClusterAdminService.class);
- service.addNode(new NodeId(nodeId), IpPrefix.valueOf(ip), tcpPort);
+ service.addNode(new NodeId(nodeId), IpAddress.valueOf(ip), tcpPort);
}
}