Skip to content

Commit

Permalink
Bypass as-path loop filtering on locally injected routes
Browse files Browse the repository at this point in the history
  • Loading branch information
floatingstatic authored and fujita committed Nov 24, 2021
1 parent 7014234 commit 04899bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ func filterpath(peer *peer, path, old *table.Path) *table.Path {
return nil
}

if !peer.isRouteServerClient() && isASLoop(peer, path) {
if !peer.isRouteServerClient() && isASLoop(peer, path) && !path.IsLocal() {
return nil
}
return path
Expand Down

0 comments on commit 04899bd

Please sign in to comment.