summaryrefslogtreecommitdiffhomepage
path: root/table
diff options
context:
space:
mode:
Diffstat (limited to 'table')
-rw-r--r--table/message.go2
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())