diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-04-22 20:03:30 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-17 02:27:08 +0200 |
commit | 4f576e7575f9c1f4b017374a990906130d00dfdd (patch) | |
tree | 171410c02a9335f588190ea81266e67ae3a9010e | |
parent | vrrpd: use frr_elevate_privs (diff) | |
download | frr-4f576e7575f9c1f4b017374a990906130d00dfdd.tar.xz frr-4f576e7575f9c1f4b017374a990906130d00dfdd.zip |
lib, vrrpd: define & use ZEBRA_ROUTE_VRRP
Allow Zebra to know our protocol name.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
-rw-r--r-- | lib/route_types.txt | 1 | ||||
-rw-r--r-- | vrrpd/vrrp_zebra.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/route_types.txt b/lib/route_types.txt index c5eff44ca..6c46fa89e 100644 --- a/lib/route_types.txt +++ b/lib/route_types.txt @@ -83,6 +83,7 @@ ZEBRA_ROUTE_SHARP, sharp, sharpd, 'D', 1, 1, 1, "SHARP" ZEBRA_ROUTE_PBR, pbr, pbrd, 'F', 1, 1, 0, "PBR" ZEBRA_ROUTE_BFD, bfd, bfdd, '-', 0, 0, 0, "BFD" ZEBRA_ROUTE_OPENFABRIC, openfabric, fabricd, 'f', 1, 1, 1, "OpenFabric" +ZEBRA_ROUTE_VRRP, vrrp, vrrpd, '-', 0, 0, 0, "VRRP" ZEBRA_ROUTE_ALL, wildcard, none, '-', 0, 0, 0, "-" diff --git a/vrrpd/vrrp_zebra.c b/vrrpd/vrrp_zebra.c index 8d5a6453e..7503034de 100644 --- a/vrrpd/vrrp_zebra.c +++ b/vrrpd/vrrp_zebra.c @@ -246,7 +246,7 @@ void vrrp_zebra_init(void) zclient->interface_address_add = vrrp_zebra_if_address_add; zclient->interface_address_delete = vrrp_zebra_if_address_del; - zclient_init(zclient, 0, 0, &vrrp_privs); + zclient_init(zclient, ZEBRA_ROUTE_VRRP, 0, &vrrp_privs); zlog_notice("%s: zclient socket initialized", __PRETTY_FUNCTION__); } |