]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: fix multihop/multipath confusion
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 20 Sep 2017 16:59:30 +0000 (13:59 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Thu, 21 Sep 2017 16:27:50 +0000 (13:27 -0300)
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
zebra/rt_netlink.c

index 344a204fde8c6d0caaa4a30a6baa3589761399b2..d67d6702770b634d149ec95bc4aa3cbbb951f5b4 100644 (file)
@@ -1446,8 +1446,8 @@ static int netlink_route_multipath(int cmd, struct prefix *p,
                                && CHECK_FLAG(nexthop->flags,
                                              NEXTHOP_FLAG_FIB))) {
                                routedesc = nexthop->rparent
-                                                   ? "recursive, 1 hop"
-                                                   : "single hop";
+                                                   ? "recursive, single-path"
+                                                   : "single-path";
 
                                _netlink_route_debug(cmd, p, nexthop, routedesc,
                                                     family, zvrf);
@@ -1529,8 +1529,8 @@ static int netlink_route_multipath(int cmd, struct prefix *p,
                                && CHECK_FLAG(nexthop->flags,
                                              NEXTHOP_FLAG_FIB))) {
                                routedesc = nexthop->rparent
-                                                   ? "recursive, multihop"
-                                                   : "multihop";
+                                                   ? "recursive, multipath"
+                                                   : "multipath";
                                nexthop_num++;
 
                                _netlink_route_debug(cmd, p, nexthop, routedesc,
@@ -2412,7 +2412,7 @@ int netlink_mpls_multipath(int cmd, zebra_lsp_t *lsp)
         * chosen depend on the operation.
         */
        if (nexthop_num == 1 || multipath_num == 1) {
-               routedesc = "single hop";
+               routedesc = "single-path";
                _netlink_mpls_debug(cmd, lsp->ile.in_label, routedesc);
 
                nexthop_num = 0;
@@ -2460,7 +2460,7 @@ int netlink_mpls_multipath(int cmd, zebra_lsp_t *lsp)
                rta->rta_len = RTA_LENGTH(0);
                rtnh = RTA_DATA(rta);
 
-               routedesc = "multihop";
+               routedesc = "multipath";
                _netlink_mpls_debug(cmd, lsp->ile.in_label, routedesc);
 
                nexthop_num = 0;