]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: add 3 new gre commands, and enforce synchro mecanism
authorPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 20 Dec 2019 09:34:01 +0000 (10:34 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 30 Apr 2021 08:33:18 +0000 (10:33 +0200)
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 <philippe.guibert@6wind.com>
lib/log.c
lib/zclient.h

index ca2f50168602638a34cb600eb32be1f4db72bb41..0edf5b3e9b015c4ab7b7aee7e948c3fcef2daaee 100644 (file)
--- 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", '?'};
index e8fff4b881dfe1c4f50d2ada30ef3a097dd8df88..f9e1bdc370b1bf023c8ed96677cfc63caf63f854 100644 (file)
@@ -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 {