commit | e38c21e21e58748da9cf8e35de00ee0e446a2068 | [log] [tgz] |
---|---|---|
author | Shashikanth VH <shashikanth.vh@huawei.com> | Thu May 26 21:37:25 2016 +0530 |
committer | Gerrit Code Review <gerrit@onlab.us> | Fri May 27 03:43:49 2016 +0000 |
tree | 190bc971fc769059d009a31e98c6324514094d91 | |
parent | a82b2171a49b43eab4c42584e67e9aecefbea311 [diff] [blame] |
BGP routepolicy distribution bug fixes. Change-Id: I2176e3872391658263d6817ac8850a3390de00de
diff --git a/protocols/bgp/bgpio/src/main/java/org/onosproject/bgpio/protocol/ver4/BgpUpdateMsgVer4.java b/protocols/bgp/bgpio/src/main/java/org/onosproject/bgpio/protocol/ver4/BgpUpdateMsgVer4.java index 4c3d4a1..7062a7d 100644 --- a/protocols/bgp/bgpio/src/main/java/org/onosproject/bgpio/protocol/ver4/BgpUpdateMsgVer4.java +++ b/protocols/bgp/bgpio/src/main/java/org/onosproject/bgpio/protocol/ver4/BgpUpdateMsgVer4.java
@@ -241,12 +241,11 @@ afi = mpUnReach.afi(); safi = mpUnReach.safi(); } + } - if ((afi == Constants.AFI_FLOWSPEC_VALUE) && ((safi == Constants.SAFI_FLOWSPEC_VALUE) - || (safi == Constants.VPN_SAFI_FLOWSPEC_VALUE))) { - //unfeasible route length - cb.writeShort(0); - } + if ((afi == Constants.AFI_FLOWSPEC_VALUE) || (afi == Constants.AFI_VALUE)) { + //unfeasible route length + cb.writeShort(0); } }