From 632d83067c034609c3507e5c0e3d53c71d9c7fc7 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Fri, 20 Dec 2019 10:34:01 +0100 Subject: [PATCH] zebra: add 3 new gre commands, and enforce synchro mecanism 3 new gre commands are available: - GRE_GET to permit a daemon to retrieve gre information. - GRE_UPDATe is the reply message from zebra to the daemon. as it is a syncronous request, the GRE_GET expected will have to match the vrf id where the gre information is wished. this has an impact on label manager with change in APIs. - SET_GRE_SOURCE. this command will be stubbed for now, assuming that the gre interface is set accordingly by external script. Signed-off-by: Philippe Guibert --- lib/log.c | 5 ++++- lib/zclient.h | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/log.c b/lib/log.c index ca2f501686..0edf5b3e9b 100644 --- a/lib/log.c +++ b/lib/log.c @@ -472,7 +472,10 @@ static const struct zebra_desc_table command_types[] = { DESC_ENTRY(ZEBRA_NHRP_NEIGH_UNREGISTER), DESC_ENTRY(ZEBRA_NEIGH_IP_ADD), DESC_ENTRY(ZEBRA_NEIGH_IP_DEL), - DESC_ENTRY(ZEBRA_CONFIGURE_ARP)}; + DESC_ENTRY(ZEBRA_CONFIGURE_ARP), + DESC_ENTRY(ZEBRA_GRE_GET), + DESC_ENTRY(ZEBRA_GRE_UPDATE), + DESC_ENTRY(ZEBRA_GRE_SOURCE_SET)}; #undef DESC_ENTRY static const struct zebra_desc_table unknown = {0, "unknown", '?'}; diff --git a/lib/zclient.h b/lib/zclient.h index e8fff4b881..f9e1bdc370 100644 --- a/lib/zclient.h +++ b/lib/zclient.h @@ -232,6 +232,9 @@ typedef enum { ZEBRA_NEIGH_IP_ADD, ZEBRA_NEIGH_IP_DEL, ZEBRA_CONFIGURE_ARP, + ZEBRA_GRE_GET, + ZEBRA_GRE_UPDATE, + ZEBRA_GRE_SOURCE_SET, } zebra_message_types_t; enum zebra_error_types { -- 2.39.5