]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Allow a static daemon to connect
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 18 Apr 2018 18:50:55 +0000 (14:50 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 29 Jul 2018 16:27:48 +0000 (12:27 -0400)
As part of moving the static route handling to it's own daemon
allow zebra to accept static route types from upper level
protocols.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/zapi_msg.c

index c16fa70857d5ac162291e5e406e1a80a5b0e5b3d..b41cb812cb8b728354c5dec48ab04c4bdfc22e73 100644 (file)
@@ -2245,7 +2245,7 @@ static void zread_hello(ZAPI_HANDLER_ARGS)
                client->notify_owner = true;
 
        /* accept only dynamic routing protocols */
-       if ((proto < ZEBRA_ROUTE_MAX) && (proto > ZEBRA_ROUTE_STATIC)) {
+       if ((proto < ZEBRA_ROUTE_MAX) && (proto > ZEBRA_ROUTE_CONNECT)) {
                zlog_notice(
                        "client %d says hello and bids fair to announce only %s routes vrf=%u",
                        client->sock, zebra_route_string(proto),