Adding FlowRuleIntent to kryo (ONOS-1384)

Change-Id: Ica6cb24d95d7bcd3cce8d18074c96cb1c25b2f21
diff --git a/core/api/src/main/java/org/onosproject/net/intent/FlowRuleIntent.java b/core/api/src/main/java/org/onosproject/net/intent/FlowRuleIntent.java
index 3f66f3b..82ea0b7 100644
--- a/core/api/src/main/java/org/onosproject/net/intent/FlowRuleIntent.java
+++ b/core/api/src/main/java/org/onosproject/net/intent/FlowRuleIntent.java
@@ -61,6 +61,14 @@
     }
 
     /**
+     * Constructor for serializer.
+     */
+    protected FlowRuleIntent() {
+        super();
+        this.flowRules = null;
+    }
+
+    /**
      * Returns a collection of flow rules to be set.
      *
      * @return a collection of flow rules
diff --git a/core/store/serializers/src/main/java/org/onosproject/store/serializers/KryoNamespaces.java b/core/store/serializers/src/main/java/org/onosproject/store/serializers/KryoNamespaces.java
index fb29ed4..33631da 100644
--- a/core/store/serializers/src/main/java/org/onosproject/store/serializers/KryoNamespaces.java
+++ b/core/store/serializers/src/main/java/org/onosproject/store/serializers/KryoNamespaces.java
@@ -80,6 +80,7 @@
 import org.onosproject.net.host.DefaultHostDescription;
 import org.onosproject.net.host.HostDescription;
 import org.onosproject.net.intent.ConnectivityIntent;
+import org.onosproject.net.intent.FlowRuleIntent;
 import org.onosproject.net.intent.HostToHostIntent;
 import org.onosproject.net.intent.Intent;
 import org.onosproject.net.intent.IntentId;
@@ -295,6 +296,7 @@
                     PointToPointIntent.class,
                     MultiPointToSinglePointIntent.class,
                     SinglePointToMultiPointIntent.class,
+                    FlowRuleIntent.class,
                     LinkCollectionIntent.class,
                     OpticalConnectivityIntent.class,
                     OpticalPathIntent.class,