Skip to content
Snippets Groups Projects
Commit b521f24a authored by Oliver Herms's avatar Oliver Herms
Browse files

Fixing main

parent fd89ee0f
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,6 @@ import ( ...@@ -10,7 +10,6 @@ import (
"github.com/bio-routing/bio-rd/config" "github.com/bio-routing/bio-rd/config"
"github.com/bio-routing/bio-rd/protocols/bgp/server" "github.com/bio-routing/bio-rd/protocols/bgp/server"
"github.com/bio-routing/bio-rd/route"
"github.com/bio-routing/bio-rd/routingtable" "github.com/bio-routing/bio-rd/routingtable"
"github.com/bio-routing/bio-rd/routingtable/filter" "github.com/bio-routing/bio-rd/routingtable/filter"
"github.com/bio-routing/bio-rd/routingtable/locRIB" "github.com/bio-routing/bio-rd/routingtable/locRIB"
...@@ -40,15 +39,6 @@ func main() { ...@@ -40,15 +39,6 @@ func main() {
logrus.Fatalf("Unable to start BGP server: %v", err) logrus.Fatalf("Unable to start BGP server: %v", err)
} }
rib.AddPath(bnet.NewPfx(strAddr("10.0.0.0"), 8), &route.Path{
Type: route.BGPPathType,
BGPPath: &route.BGPPath{
NextHop: 100,
ASPath: "3320",
Origin: 1,
},
})
b.AddPeer(config.Peer{ b.AddPeer(config.Peer{
AdminEnabled: true, AdminEnabled: true,
LocalAS: 65200, LocalAS: 65200,
...@@ -67,7 +57,7 @@ func main() { ...@@ -67,7 +57,7 @@ func main() {
ExportFilter: filter.NewAcceptAllFilter(), ExportFilter: filter.NewAcceptAllFilter(),
}, rib) }, rib)
/*b.AddPeer(config.Peer{ b.AddPeer(config.Peer{
AdminEnabled: true, AdminEnabled: true,
LocalAS: 65200, LocalAS: 65200,
PeerAS: 65100, PeerAS: 65100,
...@@ -84,7 +74,7 @@ func main() { ...@@ -84,7 +74,7 @@ func main() {
AddPathRecv: true, AddPathRecv: true,
ImportFilter: filter.NewAcceptAllFilter(), ImportFilter: filter.NewAcceptAllFilter(),
ExportFilter: filter.NewDrainFilter(), ExportFilter: filter.NewDrainFilter(),
}, rib)*/ }, rib)
go func() { go func() {
for { for {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment