diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-03-31 08:51:35 +0000 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-04-04 13:28:48 +0900 |
commit | 9c37e5aee02e9a0c7577237aa722bc76e22ccb3e (patch) | |
tree | bbf21892c0110b73f22aff41594bdca12a4014bf | |
parent | fe05aac51a605fc5fcc45efc368cd90ed8579f3a (diff) |
table: fix bug of update msg creation
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
-rw-r--r-- | table/message.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/table/message.go b/table/message.go index 223aeabc..4bc531e3 100644 --- a/table/message.go +++ b/table/message.go @@ -164,7 +164,7 @@ func createUpdateMsgFromPath(path Path, msg *bgp.BGPMessage) *bgp.BGPMessage { } else if rf == bgp.RF_IPv6_UC || rf == bgp.RF_EVPN { if path.IsWithdraw() { if msg != nil { - idx, _ := path.getPathAttr(bgp.BGP_ATTR_TYPE_MP_REACH_NLRI) + idx, _ := path.getPathAttr(bgp.BGP_ATTR_TYPE_MP_UNREACH_NLRI) u := msg.Body.(*bgp.BGPUpdate) unreach := u.PathAttributes[idx].(*bgp.PathAttributeMpUnreachNLRI) unreach.Value = append(unreach.Value, path.GetNlri()) |