Skip to content
Snippets Groups Projects
Commit 2f0300ab authored by Maximilian Wilhelm's avatar Maximilian Wilhelm
Browse files

Remove relict from bug hunting.

parent 6068245f
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ func (a *AdjRIBIn) AddPath(pfx net.Prefix, p *route.Path) error {
defer a.mu.Unlock()
// RFC4456 Sect. 8: Ignore route with our RouterID as OriginatorID
if p.BGPPath.OriginatorID == 1 {
if p.BGPPath.OriginatorID == a.routerID {
return nil
}
......
......@@ -82,7 +82,7 @@ func TestAddPath(t *testing.T) {
Type: route.BGPPathType,
BGPPath: &route.BGPPath{
LocalPref: 111,
OriginatorID: 1,
OriginatorID: routerID,
},
}),
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment