diff options
author | Jordan Whited <jwhited@subspace.com> | 2020-08-07 13:30:39 -0700 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2020-10-21 20:59:11 +0900 |
commit | e6eb1da279769bd3d56364ab685b4fb2e0b029a7 (patch) | |
tree | 396ba747e7bb8baf94eb3a5623f9538ed2edca59 /pkg/server/server_test.go | |
parent | 0ac9ac9b2561dceb430e96b2a7973a1a05ab61a0 (diff) |
fix stuck route
Diffstat (limited to 'pkg/server/server_test.go')
-rw-r--r-- | pkg/server/server_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/server/server_test.go b/pkg/server/server_test.go index 6f70f38a..39b10657 100644 --- a/pkg/server/server_test.go +++ b/pkg/server/server_test.go @@ -706,10 +706,11 @@ func newPeerandInfo(myAs, as uint32, address string, rib *table.TableManager) (* nConf, rib, policy) + p.fsm.peerInfo.ID = net.ParseIP(address) for _, f := range rib.GetRFlist() { p.fsm.rfMap[f] = bgp.BGP_ADD_PATH_NONE } - return p, &table.PeerInfo{AS: as, Address: net.ParseIP(address)} + return p, &table.PeerInfo{AS: as, Address: net.ParseIP(address), ID: net.ParseIP(address)} } func process(rib *table.TableManager, l []*table.Path) (*table.Path, *table.Path) { |