diff options
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) { |