Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bgp: removing daemon and re-adding it to config does not clear "l2vpn evpn" config #17463

Open
2 tasks done
c-po opened this issue Nov 19, 2024 · 3 comments
Open
2 tasks done
Labels
triage Needs further investigation

Comments

@c-po
Copy link
Contributor

c-po commented Nov 19, 2024

Description

When stopping no router bgp ASN and restarting router bgp ASN the bgpd configuration will keep parts which are not cleared and will survive.

Version

# show version
FRRouting 10.1.1 (LR1.wue3) on Linux(6.6.56-vyos).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

$ git describe
frr-10.1.1-103-ga5755342e

a5755342e

How to reproduce

Configure BGP process

!
router bgp 100
 no bgp ebgp-requires-policy
 no bgp default ipv4-unicast
 no bgp network import-check
 !
 address-family l2vpn evpn
  ead-es-frag evi-limit 1000
  disable-ead-evi-rx
  disable-ead-evi-tx
 exit-address-family
exit
!

Remove bgpd configuration

!
no router bgp 100
!

Re-enable bgpd configuration

!
router bgp 100
!

Expected behavior

!
router bgp 100
exit
!

Actual behavior

router bgp 100
 !
 address-family l2vpn evpn
  ead-es-frag evi-limit 1000
  disable-ead-evi-rx
  disable-ead-evi-tx
 exit-address-family
exit
!

Additional context

No response

Checklist

  • I have searched the open issues for this bug.
  • I have not included sensitive information in this report.
@c-po c-po added the triage Needs further investigation label Nov 19, 2024
@c-po c-po changed the title bgp: shuting down routing daemon does not clear "l2vpn evpn" config bgp: removing daemon and re-adding it to config does not clear "l2vpn evpn" config Nov 19, 2024
@chiragshah6
Copy link
Member

I have tried similar steps and do not see the issue, upon re creating bgp instance, evpn address-family didn't come back.

bharat# show running-config 
Building configuration...

Current configuration:
!
frr version 10.3-dev
frr defaults traditional
hostname bharat
log file /var/log/frr/pimd.log
log syslog
log timestamp precision 6
no ip forwarding
no ipv6 forwarding
service integrated-vtysh-config
!
ip prefix-list 10.225.4.66-pl-ipv4 seq 5 permit 10.225.4.36/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 10 permit 10.225.4.0/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 15 permit 10.225.4.2/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 20 permit 10.225.4.3/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 25 permit 10.225.4.35/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 30 permit 10.225.4.34/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 35 permit 10.225.4.33/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 40 permit 10.225.4.32/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 45 deny any
!
vrf vrf_blue
exit-vrf
!
router bgp 100
 no bgp ebgp-requires-policy
 no bgp default ipv4-unicast
 no bgp network import-check
 !
 address-family l2vpn evpn
  ead-es-frag evi-limit 1000
  disable-ead-evi-rx
  disable-ead-evi-tx
 exit-address-family
exit
!
end
bharat# config t
bharat(config)# no router bgp 100 


bharat(config)# do show running-config bgpd 
Building configuration...

Current configuration:
!
frr version 10.3-dev
frr defaults traditional

service integrated-vtysh-config
!
ip prefix-list 10.225.4.66-pl-ipv4 seq 5 permit 10.225.4.36/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 10 permit 10.225.4.0/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 15 permit 10.225.4.2/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 20 permit 10.225.4.3/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 25 permit 10.225.4.35/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 30 permit 10.225.4.34/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 35 permit 10.225.4.33/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 40 permit 10.225.4.32/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 45 deny any
!
vrf vrf_blue
exit-vrf
!
end
bharat(config)# router bgp 100
bharat(config-router)# do show running-config bgpd 
Building configuration...

Current configuration:
!
frr version 10.3-dev
frr defaults traditional

service integrated-vtysh-config
!
ip prefix-list 10.225.4.66-pl-ipv4 seq 5 permit 10.225.4.36/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 10 permit 10.225.4.0/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 15 permit 10.225.4.2/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 20 permit 10.225.4.3/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 25 permit 10.225.4.35/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 30 permit 10.225.4.34/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 35 permit 10.225.4.33/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 40 permit 10.225.4.32/32
ip prefix-list 10.225.4.66-pl-ipv4 seq 45 deny any
!
vrf vrf_blue
exit-vrf
!
router bgp 100
 !
 address-family l2vpn evpn
  ead-es-frag evi-limit 1000
  disable-ead-evi-rx
  disable-ead-evi-tx
 exit-address-family
exit
!
end
bharat(config-router)# 

@c-po
Copy link
Contributor Author

c-po commented Nov 29, 2024

I have tried similar steps and do not see the issue, upon re creating bgp instance, evpn address-family didn't come back.

Hi @chiragshah6,

in your output provided you re-enabled BGP:

bharat(config)# router bgp 100

and during config show EVPN address family re-appeaed, too

bharat(config-router)# do show running-config bgpd 
...
router bgp 100
 !
 address-family l2vpn evpn
  ead-es-frag evi-limit 1000
  disable-ead-evi-rx
  disable-ead-evi-tx
 exit-address-family
exit
...

@ykholod
Copy link

ykholod commented Dec 23, 2024

To add more, we do not clean distance for address family on bgp router reset:
!
router bgp 100
!
address-family ipv4 unicast
distance 100 10.0.0.0/24
exit-address-family
exit
!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Needs further investigation
Projects
None yet
Development

No branches or pull requests

3 participants