Describe the bug
When a route from an eBGP neighbor is received and no policies are configured for this neighbor, the Local-Pref will be set to 0. Without any policies configured the Local-Pref should instead be set to 100, which is the correct default value.
Steps to Reproduce
Build examples/bgp and peer with another BGP speaker which has a different AS. Announce a route from the other BGP speaker towards bio-rd.
Expected behavior
I expect bio-rd to set a default Local-Pref of 100 for all received routes which do not have Local-Pref set, before any policies are evaluated.
Describe the bug When a route from an eBGP neighbor is received and no policies are configured for this neighbor, the Local-Pref will be set to 0. Without any policies configured the Local-Pref should instead be set to 100, which is the correct default value.
Steps to Reproduce Build
examples/bgp
and peer with another BGP speaker which has a different AS. Announce a route from the other BGP speaker towards bio-rd.Expected behavior I expect bio-rd to set a default Local-Pref of 100 for all received routes which do not have Local-Pref set, before any policies are evaluated.
Configuration used Peer config for
examples/bgp
:Other BGP speaker was gobgp. Config:
Inject route:
Check route in bio-rd:
Local-Pref should be 100 not 0.