mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 23:53:28 +00:00
bgpd: Register for label only the default instance
Ensure that the registration for the "in" label for a unicast prefix is done only in the default instance. The zebra label manager as well as other code in BGP only has support for assigning labels in the default instance. Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-17110 Reviewed By: CCR-6588 Testing Done: Manual tests, mpls
This commit is contained in:
parent
ee7ca6c059
commit
cb499ebbaa
@ -2044,11 +2044,12 @@ static wq_item_status bgp_process_main(struct work_queue *wq, void *data)
|
|||||||
|
|
||||||
/* Do we need to allocate or free labels?
|
/* Do we need to allocate or free labels?
|
||||||
* Right now, since we only deal with per-prefix labels, it is not
|
* Right now, since we only deal with per-prefix labels, it is not
|
||||||
* necessary
|
* necessary to do this upon changes to best path except if the label
|
||||||
* to do this upon changes to best path except of the label index
|
* index changes.
|
||||||
* changes.
|
* NOTE: This is only relevant for the default instance.
|
||||||
*/
|
*/
|
||||||
if (safi == SAFI_UNICAST) {
|
if (bgp->inst_type == BGP_INSTANCE_TYPE_DEFAULT
|
||||||
|
&& safi == SAFI_UNICAST) {
|
||||||
if (new_select) {
|
if (new_select) {
|
||||||
if (!old_select
|
if (!old_select
|
||||||
|| bgp_label_index_differs(new_select, old_select)
|
|| bgp_label_index_differs(new_select, old_select)
|
||||||
|
Loading…
Reference in New Issue
Block a user