diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-29 12:41:12 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-29 12:41:12 +0900 |
commit | fddfcd9e42ec80eeaf1eb3bbdbf2fde10d74e3ce (patch) | |
tree | 5cdec601fcf3bde7b9d4da09024b450513cbf745 | |
parent | 46a99f289acd19dda0bced25634ab049f43d7090 (diff) |
gobgp: mrt inject should not add nexthop attribute
mrt dump file should include nexthop attribute
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | gobgp/mrt.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gobgp/mrt.go b/gobgp/mrt.go index e20bf999..bfbed87a 100644 --- a/gobgp/mrt.go +++ b/gobgp/mrt.go @@ -280,15 +280,9 @@ func injectMrt(r string, filename string, count int) error { fmt.Printf("invalid peer index: %d (PEER_INDEX_TABLE has only %d peers)\n", e.PeerIndex, len(peers)) os.Exit(1) } - nexthop := peers[e.PeerIndex].IpAddress.String() if rf == bgp.RF_IPv4_UC { path.Nlri, _ = nlri.Serialize() - n, _ := bgp.NewPathAttributeNextHop(nexthop).Serialize() - path.Pattrs = append(path.Pattrs, n) - } else { - mpreach, _ := bgp.NewPathAttributeMpReachNLRI(nexthop, []bgp.AddrPrefixInterface{nlri}).Serialize() - path.Pattrs = append(path.Pattrs, mpreach) } for _, p := range e.PathAttributes { |