Skip to content

Frr won't load different bgp config with different asn in different vrf #9537

Description

@WenceyWang

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions