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

bgpd: modify evpn advertise ipvx unicast command #18282

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pguibert6WIND
Copy link
Member

It is not possible to keep the configuration of the route-map when the advertise command is undoed to stop the service.

ubuntu2204hwe(config)# router bgp 65500
ubuntu2204hwe(config-router)# address-family l2vpn evpn
ubuntu2204hwe(config-router-af)# advertise ipv4 unicast route-map rmap
ubuntu2204hwe(config-router-af)# no advertise ipv4 unicast
ubuntu2204hwe(config-router-af)# do show running-config
[..]
router bgp 65500
!
address-family l2vpn evpn
exit-address-family
[..]

Propose to separate each element of the configuration in a multiple line running-configuration. The route-map and the gateway-ip option will be kept separately.
Add the enable keyword to enable the service on the address-family; to keep backward compatibility with the operational behaviour, the original command will either enable or disable the service.

ubuntu2204hwe(config)# router bgp 65500
ubuntu2204hwe(config-router)# address-family l2vpn evpn
ubuntu2204hwe(config-router-af)# advertise ipv4 unicast route-map rmap
ubuntu2204hwe(config-router-af)# advertise ipv6 unicast gateway-ip
ubuntu2204hwe(config-router-af)# do show running-config
[..]
router bgp 65500
!
address-family l2vpn evpn
advertise ipv4 unicast route-map rmap
advertise ipv4 unicast enable
advertise ipv6 unicast gateway-ip
advertise ipv6 unicast enable
exit-address-family
[..]
ubuntu2204hwe(config-router-af)# no advertise ipv4 unicast
ubuntu2204hwe(config-router-af)# no advertise ipv6 unicast gateway-ip
ubuntu2204hwe(config-router-af)# do show running-config
[..]
router bgp 65500
!
address-family l2vpn evpn
advertise ipv4 unicast route-map rmap
exit-address-family
[..]

Note that the split of the command in multiple line is needed to comply with yang models including a container and multiple leaves.

@frrbot frrbot bot added the bgp label Feb 27, 2025
@pguibert6WIND pguibert6WIND force-pushed the evpn_advertise_multi_command branch 2 times, most recently from 08963c6 to 9208b0c Compare February 28, 2025 10:51
@frrbot frrbot bot added the documentation label Feb 28, 2025
It is not possible to keep the configuration of the route-map when the
advertise command is undoed to stop the service.

> ubuntu2204hwe(config)# router bgp 65500
> ubuntu2204hwe(config-router)# address-family l2vpn evpn
> ubuntu2204hwe(config-router-af)# advertise ipv4 unicast route-map rmap
> ubuntu2204hwe(config-router-af)# no advertise ipv4 unicast
> ubuntu2204hwe(config-router-af)# do show running-config
> [..]
> router bgp 65500
>  !
>  address-family l2vpn evpn
>  exit-address-family
> [..]

Propose to separate each element of the configuration in a multiple line
running-configuration. The route-map and the gateway-ip option will be
kept separately.
Add the enable keyword to enable the service on the address-family; to
keep backward compatibility with the operational behaviour, the original
command will either enable or disable the service.

> ubuntu2204hwe(config)# router bgp 65500
> ubuntu2204hwe(config-router)# address-family l2vpn evpn
> ubuntu2204hwe(config-router-af)# advertise ipv4 unicast route-map rmap
> ubuntu2204hwe(config-router-af)# advertise ipv6 unicast gateway-ip
> ubuntu2204hwe(config-router-af)# do show running-config
> [..]
> router bgp 65500
>  !
>  address-family l2vpn evpn
>   advertise ipv4 unicast route-map rmap
>   advertise ipv4 unicast enable
>   advertise ipv6 unicast gateway-ip
>   advertise ipv6 unicast enable
>  exit-address-family
> [..]
> ubuntu2204hwe(config-router-af)# no advertise ipv4 unicast
> ubuntu2204hwe(config-router-af)# no advertise ipv6 unicast gateway-ip
> ubuntu2204hwe(config-router-af)# do show running-config
> [..]
> router bgp 65500
>  !
>  address-family l2vpn evpn
>   advertise ipv4 unicast route-map rmap
>  exit-address-family
> [..]

Note that the split of the command in multiple line is needed to have
same behavior as yang models: this means the ability to modify
distinctly each of the 3 parameters, for each address family.

Signed-off-by: Philippe Guibert <[email protected]>
A multiple line configuration is put in place when setting bgp evpn
advertise service.

Signed-off-by: Philippe Guibert <[email protected]>
Update the description of the bgp evpn advertise command.

Signed-off-by: Philippe Guibert <[email protected]>
@pguibert6WIND pguibert6WIND force-pushed the evpn_advertise_multi_command branch from 9208b0c to 3294d8f Compare February 28, 2025 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant