Skip to content
Snippets Groups Projects
Commit 06042b9c authored by Christoph Petrausch's avatar Christoph Petrausch
Browse files

Changed interface for adding new peer to server

parent 58e9c70f
Branches
Tags
No related merge requests found
......@@ -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")
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment