]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: add vty command to select label allocation per nexthop
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 15 Feb 2023 20:03:19 +0000 (21:03 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 9 May 2023 19:00:57 +0000 (21:00 +0200)
commitd4cdcee5bf782b057949f04b712ecd4bf7429f98
tree2deed06c5789d2277a09150855f0a2bef218fdcc
parent83b50eff9aeae7e3c4ef2aa001ddd310c983f0f0
bgpd: add vty command to select label allocation per nexthop

A new VTY command is introduced in ipv4 unicast and ipv6 unicast
address family, under a BGP instance.

 > r1# label vpn export allocation-mode per-nexthop|per-vrf

This command will update the label values associated for each
BGP update to export to the global instance. Two modes are
available: per-nexthop and per-vrf. The latter is the default
one.

With this commit only, configuring label allocation per nexthop
will only reset the BGP updates, and the per-vrf mode label
allocation will be chosen.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_vty.c
bgpd/bgpd.h