diff options
| author | Stephen Worley <sworley@nvidia.com> | 2021-04-01 11:31:44 -0400 | 
|---|---|---|
| committer | Stephen Worley <sworley@nvidia.com> | 2023-02-13 18:12:05 -0500 | 
| commit | 4645cb6bc2a4635925dae16533d6277b8da376c4 (patch) | |
| tree | 4b1c93288f7125cb20dda7e5e3b81bd29dd06364 /zebra/zebra_vty.c | |
| parent | 78d106e1cbb0af335409f60ababe5a2649da9704 (diff) | |
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 'zebra/zebra_vty.c')
| -rw-r--r-- | zebra/zebra_vty.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index 34d8ea95b3..540a88437a 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -418,7 +418,8 @@ static void show_nexthop_detail_helper(struct vty *vty,  		vty_out(vty, ", label %s",  			mpls_label2str(nexthop->nh_label->num_labels,  				       nexthop->nh_label->label, buf, -				       sizeof(buf), 1 /*pretty*/)); +				       sizeof(buf), nexthop->nh_label_type, +				       1 /*pretty*/));  	}  	if (nexthop->weight)  | 
