From 06042b9cada9c16759c50a754d075912e957236f Mon Sep 17 00:00:00 2001 From: Christoph Petrausch <christoph.petrausch@inovex.de> Date: Tue, 29 May 2018 06:23:13 +0200 Subject: [PATCH] Changed interface for adding new peer to server --- protocols/bgp/server/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/bgp/server/server.go b/protocols/bgp/server/server.go index 8a11cd3a..f50def76 100644 --- a/protocols/bgp/server/server.go +++ b/protocols/bgp/server/server.go @@ -8,7 +8,7 @@ import ( "github.com/bio-routing/bio-rd/config" "github.com/bio-routing/bio-rd/protocols/bgp/packet" - "github.com/bio-routing/bio-rd/routingtable/locRIB" + "github.com/bio-routing/bio-rd/routingtable" log "github.com/sirupsen/logrus" ) @@ -84,7 +84,7 @@ func (b *BGPServer) incomingConnectionWorker() { } } -func (b *BGPServer) AddPeer(c config.Peer, rib *locRIB.LocRIB) error { +func (b *BGPServer) AddPeer(c config.Peer, rib routingtable.RouteTableClient) error { if c.LocalAS > uint16max || c.PeerAS > uint16max { return fmt.Errorf("32bit ASNs are not supported yet") } -- GitLab