HA - Cache sync for forwarding.staticrouting 23/523/1
authorDiti Bhatia <dibhatia@cisco.com>
Wed, 26 Jun 2013 18:45:28 +0000 (11:45 -0700)
committerDiti Bhatia <dibhatia@cisco.com>
Wed, 26 Jun 2013 18:45:28 +0000 (11:45 -0700)
Signed-off-by: Diti Bhatia <dibhatia@cisco.com>
opendaylight/forwarding/staticrouting/src/main/java/org/opendaylight/controller/forwarding/staticrouting/StaticRoute.java
opendaylight/hosttracker/api/src/main/java/org/opendaylight/controller/hosttracker/hostAware/HostNodeConnector.java

index 3cf45b1..f4df243 100644 (file)
@@ -9,33 +9,34 @@
 
 package org.opendaylight.controller.forwarding.staticrouting;
 
+import java.io.Serializable;
 import java.net.Inet4Address;
 import java.net.Inet6Address;
 import java.net.InetAddress;
 import java.nio.ByteBuffer;
 import java.util.Map;
 
+import org.opendaylight.controller.hosttracker.hostAware.HostNodeConnector;
 import org.opendaylight.controller.sal.core.Node;
 import org.opendaylight.controller.sal.core.NodeConnector;
 import org.opendaylight.controller.sal.packet.BitBufferHelper;
 import org.opendaylight.controller.sal.utils.NodeConnectorCreator;
 import org.opendaylight.controller.sal.utils.NodeCreator;
-
-import org.opendaylight.controller.hosttracker.hostAware.HostNodeConnector;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 /**
  * This class defines a static route object.
  */
-public class StaticRoute {
+public class StaticRoute implements Serializable{
+    private static final long serialVersionUID = 1L;
     protected static final Logger logger = LoggerFactory
     .getLogger(StaticRoute.class);
 
     /**
      * This Enum defines the possible types for the next hop address.
      */
-    public enum NextHopType {
+    public enum NextHopType implements Serializable {
         IPADDRESS("nexthop-ip"), SWITCHPORT("nexthop-interface");
         private NextHopType(String name) {
             this.name = name;
index 8345b5a..893648c 100644 (file)
@@ -8,6 +8,7 @@
 
 package org.opendaylight.controller.hosttracker.hostAware;
 
+import java.io.Serializable;
 import java.net.Inet4Address;
 import java.net.Inet6Address;
 import java.net.InetAddress;
@@ -26,7 +27,7 @@ import org.opendaylight.controller.sal.packet.address.EthernetAddress;
 
 @XmlRootElement(name = "host")
 @XmlAccessorType(XmlAccessType.NONE)
-public class HostNodeConnector extends Host {
+public class HostNodeConnector extends Host implements Serializable {
     private static final long serialVersionUID = 1L;
     @XmlElement
     private NodeConnector nodeConnector;