summaryrefslogtreecommitdiffstats
path: root/ospfd
diff options
context:
space:
mode:
authorStephen Worley <sworley@nvidia.com>2021-04-01 17:31:44 +0200
committerStephen Worley <sworley@nvidia.com>2023-02-14 00:12:05 +0100
commit4645cb6bc2a4635925dae16533d6277b8da376c4 (patch)
tree4b1c93288f7125cb20dda7e5e3b81bd29dd06364 /ospfd
parentlib: add has_label function for nexthop groups (diff)
downloadfrr-4645cb6bc2a4635925dae16533d6277b8da376c4.tar.xz
frr-4645cb6bc2a4635925dae16533d6277b8da376c4.zip
lib,zebra,bgpd,staticd: use label code to store VNI info
Use the already existing mpls label code to store VNI info for vxlan. VNI's are defined as labels just like mpls, we should be using the same code for both. This patch is the first part of that. Next we will need to abstract the label code to not be so mpls specific. Currently in this, we are just treating VXLAN as a label type and storing it that way. Signed-off-by: Stephen Worley <sworley@nvidia.com>
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospf_ti_lfa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ospfd/ospf_ti_lfa.c b/ospfd/ospf_ti_lfa.c
index 28d24bcbe..76f61f783 100644
--- a/ospfd/ospf_ti_lfa.c
+++ b/ospfd/ospf_ti_lfa.c
@@ -723,7 +723,7 @@ static void ospf_ti_lfa_generate_q_spaces(struct ospf_area *area,
if (q_space->label_stack) {
mpls_label2str(q_space->label_stack->num_labels,
q_space->label_stack->label, label_buf,
- MPLS_LABEL_STRLEN, true);
+ MPLS_LABEL_STRLEN, 0, true);
zlog_info(
"%s: Generated label stack %s for root %pI4 and destination %pI4 for %s",
__func__, label_buf, &p_space->root->id,
@@ -1050,7 +1050,7 @@ void ospf_ti_lfa_insert_backup_paths(struct ospf_area *area,
path->srni.backup_label_stack
->num_labels,
path->srni.backup_label_stack->label,
- label_buf, MPLS_LABEL_STRLEN, true);
+ label_buf, MPLS_LABEL_STRLEN, 0, true);
if (IS_DEBUG_OSPF_TI_LFA)
zlog_debug(
"%s: inserted backup path %s for prefix %pFX, router id %pI4 and nexthop %pI4.",