BGPPathAttributeNextHop and BGPPathAttributeMpReachNLRI is already in
new_pathattr. so stop construct and append it to new_pathattr list.

Signed-off-by: ISHIDA Wataru <[email protected]>
---
 ryu/services/protocols/bgp/bmp.py | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/ryu/services/protocols/bgp/bmp.py 
b/ryu/services/protocols/bgp/bmp.py
index 9af87ea..c14988a 100644
--- a/ryu/services/protocols/bgp/bmp.py
+++ b/ryu/services/protocols/bgp/bmp.py
@@ -173,18 +173,8 @@ class BMPClient(Activity):
                 new_pathattr.append(mpunreach_attr)
         else:
             if isinstance(path, Ipv4Path):
-                nexthop_attr = BGPPathAttributeNextHop(path.nexthop)
-                new_pathattr.append(nexthop_attr)
                 return BGPUpdate(nlri=[path.nlri],
                                  path_attributes=new_pathattr)
-            else:
-                mpnlri_attr = BGPPathAttributeMpReachNLRI(
-                    path.route_family.afi,
-                    path.route_family.safi,
-                    path.nexthop,
-                    [path.nlri]
-                )
-                new_pathattr.append(mpnlri_attr)
 
         return BGPUpdate(path_attributes=new_pathattr)
 
-- 
1.9.1


------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to