]> git.proxmox.com 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>
Wed, 22 Mar 2023 11:06:29 +0000 (12:06 +0100)
commitbbae0bb0422ebce9b7704cdaebff616d67d404fe
treeffa65d8ae83f5578df8118437e43d96044e32aa6
parentf081a1924c97837677aaa97c54aff61cb0f7f26d
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