From 43e7abb55549ec976a86b1c42d503b54ce173d61 Mon Sep 17 00:00:00 2001 From: Olivier Dugeon Date: Tue, 2 Jun 2020 19:24:46 +0200 Subject: ospfd: Move Segment Routing Zebra functions For coherency, move and rename functions that send MPLS labels configurations from ospf_sr.c to ospf_zebra.c: - ospf_zebra_update_prefix_sid() - ospf_zebra_delete_prefix_sid() - ospf_zebra_send_adjacency_sid() Signed-off-by: Olivier Dugeon --- ospfd/ospf_sr.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ospfd/ospf_sr.h') diff --git a/ospfd/ospf_sr.h b/ospfd/ospf_sr.h index 5e1e1f783..3621ea53d 100644 --- a/ospfd/ospf_sr.h +++ b/ospfd/ospf_sr.h @@ -58,6 +58,10 @@ zlog_debug(__VA_ARGS__); \ } while (0) +/* Macro to check if SR Prefix has no valid route */ +#define IS_NO_ROUTE(srp) ((srp->route == NULL) || (srp->route->paths == NULL) \ + || list_isempty(srp->route->paths)) + /* SID/Label Sub TLV - section 2.1 */ #define SUBTLV_SID_LABEL 1 #define SUBTLV_SID_LABEL_SIZE 8 -- cgit v1.2.3