frr
frr copied to clipboard
Frr won't load different bgp config with different asn in different vrf
Describe the bug
While using different asn in BGP in different vrf, the configuration will not load correctly as the BGP after the first in the config file will be ignored and still use the first asn and drop all the configuration.
[X] Did you check if this is a duplicate issue? [ ] Did you test it on the latest FRRouting/frr master branch?
To Reproduce
Config like
...
!
router bgp 65026
no bgp ebgp-requires-policy
no bgp default ipv4-unicast
bgp confederation identifier 205532
...
!
router bgp 205532 vrf UpStream
no bgp ebgp-requires-policy
no bgp default ipv4-unicast
...
!
write memory
exit vtysh
service frr restart
vtysh
show run
and then check the output
!
router bgp 65026
no bgp ebgp-requires-policy
no bgp default ipv4-unicast
!
router bgp 65026 vrf UpStream
!
Expected behavior The config is loaded correctly and service running correctly.
Screenshots
Versions
- OS Version:
>cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.15.0_alpha20210804
PRETTY_NAME="Alpine Linux edge"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"
- Kernel:
>uname -a
Linux ga-router 5.10.60-0-lts #1-Alpine SMP Thu, 19 Aug 2021 08:33:31 +0000 x86_64 Linux
- FRR Version: 7.5.1
Additional context
I can actually run service frr reload
to workaround this thing but if bgpd is being restarted, it will not load config correctly.
I can't reproduce it on both 7.5.1 and master.
I can't reproduce it on both 7.5.1 and master.
Here is my full config, which may help, or if I can provide something else?
/etc/network/interfaces
: https://pastebin.com/N8LVmFvj
/etc/frr/frr.conf
: https://pastebin.com/c4ttXwuq
And as I install frr by the using the apt
, the pkg manager for alpine linux.
The package is at https://pkgs.alpinelinux.org/package/edge/community/x86/frr
the build log is at https://build.alpinelinux.org/buildlogs/build-edge-x86/community/frr/frr-7.5.1-r1.log
And then I have noticed there are some patches like this: https://git.alpinelinux.org/aports/tree/community/frr/allow-invalid-nlri-attributes.patch
Should I do something else that may help?
The problem is reproducible with the full config.
When you enter import vrf Hanataba
inside the default VRF router config, it automatically creates the router config for vrf Hanataba with the same AS number.
I believe it's just not possible right now to configure multiple VRFs with different ASNs and use import/export between them.
This issue is stale because it has been open 180 days with no activity. Comment or remove the autoclose
label in order to avoid having this issue closed.
This issue will be automatically closed in the specified period unless there is further activity.
This issue will be automatically closed in the specified period unless there is further activity.
I don't think it's good to just close a reproducible bug just for inactivity.
This issue will no longer be automatically closed.
This issue is stale because it has been open 180 days with no activity. Comment or remove the autoclose
label in order to avoid having this issue closed.
This issue will be automatically closed in the specified period unless there is further activity.
This issue will be automatically closed in the specified period unless there is further activity.
Again, I don't think it's reasonable to just close a reproducible bug just for inactivity.
This issue will no longer be automatically closed.