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

Fix build

parent c2fe283c
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ go_library(
importpath = "github.com/bio-routing/bio-rd/examples/bmp",
visibility = ["//visibility:private"],
deps = [
"//protocols/bmp/server:go_default_library",
"//protocols/bgp/server:go_default_library",
"//routingtable/locRIB:go_default_library",
"//vendor/github.com/sirupsen/logrus:go_default_library",
],
......
......@@ -3,6 +3,8 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = [
"bmp_router.go",
"bmp_server.go",
"fake_conn.go",
"fsm.go",
"fsm_active.go",
......@@ -29,6 +31,7 @@ go_library(
"//net:go_default_library",
"//protocols/bgp/packet:go_default_library",
"//protocols/bgp/types:go_default_library",
"//protocols/bmp/packet:go_default_library",
"//route:go_default_library",
"//routingtable:go_default_library",
"//routingtable/adjRIBIn:go_default_library",
......@@ -36,12 +39,15 @@ go_library(
"//routingtable/filter:go_default_library",
"//routingtable/locRIB:go_default_library",
"//vendor/github.com/sirupsen/logrus:go_default_library",
"//vendor/github.com/taktv6/tflow2/convert:go_default_library",
],
)
go_test(
name = "go_default_test",
srcs = [
"bmp_router_test.go",
"bmp_server_test.go",
"fsm_address_family_test.go",
"fsm_open_sent_test.go",
"fsm_test.go",
......@@ -55,11 +61,14 @@ go_test(
"//net:go_default_library",
"//protocols/bgp/packet:go_default_library",
"//protocols/bgp/types:go_default_library",
"//protocols/bmp/packet:go_default_library",
"//route:go_default_library",
"//routingtable:go_default_library",
"//routingtable/adjRIBIn:go_default_library",
"//routingtable/filter:go_default_library",
"//routingtable/locRIB:go_default_library",
"//testing:go_default_library",
"//vendor/github.com/sirupsen/logrus:go_default_library",
"//vendor/github.com/stretchr/testify/assert:go_default_library",
],
)
package server
import (
"fmt"
"time"
bnet "github.com/bio-routing/bio-rd/net"
......@@ -114,8 +113,7 @@ func (f *fsmAddressFamily) updates(u *packet.BGPUpdate) {
path := f.newRoutePath()
f.processAttributes(u.PathAttributes, path)
err := f.adjRIBIn.AddPath(r.Prefix, path)
fmt.Printf("add path err: %v\n", err)
f.adjRIBIn.AddPath(r.Prefix, path)
}
}
......
......@@ -72,7 +72,6 @@ func (a *AdjRIBIn) AddPath(pfx net.Prefix, p *route.Path) error {
// RFC4456 Sect. 8: Ignore route with our RouterID as OriginatorID
if p.BGPPath.OriginatorID == a.routerID {
panic("FKJK")
return nil
}
......
......@@ -2,9 +2,13 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = ["conn_mock.go"],
srcs = [
"conn_mock.go",
"log.go",
],
importpath = "github.com/bio-routing/bio-rd/testing",
visibility = ["//visibility:public"],
deps = ["//vendor/github.com/sirupsen/logrus:go_default_library"],
)
go_test(
......
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