Committed by
Ray Milkey
Adding FlowRuleIntent to kryo (ONOS-1384)
Change-Id: Ica6cb24d95d7bcd3cce8d18074c96cb1c25b2f21
Showing
2 changed files
with
10 additions
and
0 deletions
... | @@ -61,6 +61,14 @@ public class FlowRuleIntent extends Intent { | ... | @@ -61,6 +61,14 @@ public class FlowRuleIntent extends Intent { |
61 | } | 61 | } |
62 | 62 | ||
63 | /** | 63 | /** |
64 | + * Constructor for serializer. | ||
65 | + */ | ||
66 | + protected FlowRuleIntent() { | ||
67 | + super(); | ||
68 | + this.flowRules = null; | ||
69 | + } | ||
70 | + | ||
71 | + /** | ||
64 | * Returns a collection of flow rules to be set. | 72 | * Returns a collection of flow rules to be set. |
65 | * | 73 | * |
66 | * @return a collection of flow rules | 74 | * @return a collection of flow rules | ... | ... |
... | @@ -80,6 +80,7 @@ import org.onosproject.net.flow.instructions.L3ModificationInstruction; | ... | @@ -80,6 +80,7 @@ import org.onosproject.net.flow.instructions.L3ModificationInstruction; |
80 | import org.onosproject.net.host.DefaultHostDescription; | 80 | import org.onosproject.net.host.DefaultHostDescription; |
81 | import org.onosproject.net.host.HostDescription; | 81 | import org.onosproject.net.host.HostDescription; |
82 | import org.onosproject.net.intent.ConnectivityIntent; | 82 | import org.onosproject.net.intent.ConnectivityIntent; |
83 | +import org.onosproject.net.intent.FlowRuleIntent; | ||
83 | import org.onosproject.net.intent.HostToHostIntent; | 84 | import org.onosproject.net.intent.HostToHostIntent; |
84 | import org.onosproject.net.intent.Intent; | 85 | import org.onosproject.net.intent.Intent; |
85 | import org.onosproject.net.intent.IntentId; | 86 | import org.onosproject.net.intent.IntentId; |
... | @@ -295,6 +296,7 @@ public final class KryoNamespaces { | ... | @@ -295,6 +296,7 @@ public final class KryoNamespaces { |
295 | PointToPointIntent.class, | 296 | PointToPointIntent.class, |
296 | MultiPointToSinglePointIntent.class, | 297 | MultiPointToSinglePointIntent.class, |
297 | SinglePointToMultiPointIntent.class, | 298 | SinglePointToMultiPointIntent.class, |
299 | + FlowRuleIntent.class, | ||
298 | LinkCollectionIntent.class, | 300 | LinkCollectionIntent.class, |
299 | OpticalConnectivityIntent.class, | 301 | OpticalConnectivityIntent.class, |
300 | OpticalPathIntent.class, | 302 | OpticalPathIntent.class, | ... | ... |
-
Please register or login to post a comment