From e132dea0643499187cc51a332fd6616ee6df387c Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Thu, 8 Aug 2019 13:56:39 -0300 Subject: zebra: identify MPLS FTNs by route type and instance Use the route type and instance instead of the route distance to identify MPLS FTNs. This is a more robust approach since the routing daemons can modify the distance of their announced routes via configuration, which can cause inconsistencies. Signed-off-by: Renato Westphal --- lib/zclient.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/zclient.h') diff --git a/lib/zclient.h b/lib/zclient.h index e665635a8a..a3238a9161 100644 --- a/lib/zclient.h +++ b/lib/zclient.h @@ -400,7 +400,8 @@ struct zapi_labels { struct prefix prefix; union g_addr nexthop; ifindex_t ifindex; - uint8_t distance; + uint8_t route_type; + unsigned short route_instance; mpls_label_t local_label; mpls_label_t remote_label; }; -- cgit v1.2.3