commit | e3a73bcaeff2ca31a3b513e4763f5f1783479388 | [log] [tgz] |
---|---|---|
author | Shashikanth VH <shashikanth.vh@huawei.com> | Mon Feb 22 20:11:31 2016 +0530 |
committer | ShashikanthVH-Huawei <shashikanth.vh@huawei.com> | Mon Feb 22 14:56:07 2016 +0000 |
tree | 581559f8de8cadacc6edbdc6a2dc5df9b441fd28 | |
parent | 7f4bc52841ea2270ea4d830f36996005c0cea06a [diff] [blame] |
BGP flow spec RIBin. Change-Id: I4909bb6e579311a74e25cb44172a2a010faa4e85
diff --git a/protocols/bgp/bgpio/src/main/java/org/onosproject/bgpio/protocol/flowspec/BgpFlowSpecPrefix.java b/protocols/bgp/bgpio/src/main/java/org/onosproject/bgpio/protocol/flowspec/BgpFlowSpecPrefix.java index a394839..8e83404 100755 --- a/protocols/bgp/bgpio/src/main/java/org/onosproject/bgpio/protocol/flowspec/BgpFlowSpecPrefix.java +++ b/protocols/bgp/bgpio/src/main/java/org/onosproject/bgpio/protocol/flowspec/BgpFlowSpecPrefix.java
@@ -41,6 +41,14 @@ * @param sourcePrefix source prefix */ public BgpFlowSpecPrefix(IpPrefix destinationPrefix, IpPrefix sourcePrefix) { + if (destinationPrefix == null) { + destinationPrefix = IpPrefix.valueOf(0, 0); + } + + if (sourcePrefix == null) { + sourcePrefix = IpPrefix.valueOf(0, 0); + } + this.destinationPrefix = destinationPrefix; this.sourcePrefix = sourcePrefix; }