move the reactive routing to new config subsystem
Change-Id: I3e570138afb800c5bd7dbef872cbf9044732fa49
diff --git a/apps/routing-api/src/main/java/org/onosproject/routing/config/LocalIpPrefixEntry.java b/apps/routing-api/src/main/java/org/onosproject/routing/config/LocalIpPrefixEntry.java
index d9d1824..00c598f 100644
--- a/apps/routing-api/src/main/java/org/onosproject/routing/config/LocalIpPrefixEntry.java
+++ b/apps/routing-api/src/main/java/org/onosproject/routing/config/LocalIpPrefixEntry.java
@@ -15,7 +15,6 @@
*/
package org.onosproject.routing.config;
-import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.MoreObjects;
import java.util.Objects;
@@ -53,15 +52,14 @@
/**
* Creates a new IP prefix entry.
*
- * @param ipPrefix an IP prefix as a String
+ * @param ipPrefix an IP prefix
* @param type an IP prefix type as an IpPrefixType
* @param gatewayIpAddress IP of the gateway
*/
- public LocalIpPrefixEntry(@JsonProperty("ipPrefix") String ipPrefix,
- @JsonProperty("type") IpPrefixType type,
- @JsonProperty("gatewayIp") IpAddress
- gatewayIpAddress) {
- this.ipPrefix = IpPrefix.valueOf(ipPrefix);
+ public LocalIpPrefixEntry(IpPrefix ipPrefix,
+ IpPrefixType type,
+ IpAddress gatewayIpAddress) {
+ this.ipPrefix = ipPrefix;
this.type = type;
this.gatewayIpAddress = gatewayIpAddress;
}