summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-05-02 17:22:42 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-05-17 00:27:08 +0000
commit303b93cdee4c2f2d7966b4bf92fb46ca0feb35d7 (patch)
tree19233a22946e069d1c0561a937118e0566b715c7
parent30a1595df8cff4eb66b6dcb8fd4093d04225c13f (diff)
zebra: update zebra_rib for vrrp
VRRP doesn't install any routes, but should still have an array entry. Also add a help string for VRRP to route_types.txt Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
-rw-r--r--lib/route_types.txt1
-rw-r--r--zebra/zebra_rib.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/route_types.txt b/lib/route_types.txt
index 6c46fa89e3..59f3a91cf0 100644
--- a/lib/route_types.txt
+++ b/lib/route_types.txt
@@ -111,4 +111,5 @@ ZEBRA_ROUTE_BABEL, "Babel routing protocol (Babel)"
ZEBRA_ROUTE_SHARP, "Super Happy Advanced Routing Protocol (sharpd)"
ZEBRA_ROUTE_PBR, "Policy Based Routing (PBR)"
ZEBRA_ROUTE_BFD, "Bidirectional Fowarding Detection (BFD)"
+ZEBRA_ROUTE_VRRP, "Virtual Router Redundancy Protocol (VRRP)"
ZEBRA_ROUTE_OPENFABRIC, "OpenFabric Routing Protocol"
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index 8d4f49e3ee..3b305f6e3d 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -101,6 +101,7 @@ static const struct {
[ZEBRA_ROUTE_PBR] = {ZEBRA_ROUTE_PBR, 200, 4},
[ZEBRA_ROUTE_BFD] = {ZEBRA_ROUTE_BFD, 255, 4},
[ZEBRA_ROUTE_OPENFABRIC] = {ZEBRA_ROUTE_OPENFABRIC, 115, 2},
+ [ZEBRA_ROUTE_VRRP] = {ZEBRA_ROUTE_VRRP, 255, 4}
/* Any new route type added to zebra, should be mirrored here */
/* no entry/default: 150 */