X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvpp%2Fapi%2Fcustom_dump.c;h=e40a7dca938b89ae5a49b9be1e42ec54f16aa997;hb=22030434ac9a3a7296617b996268e79dbf8bbffa;hp=44aaf82a73c2c60afa92b44b36238742a2a2f0d6;hpb=c01c4451c5c6285fbfb086fb46557234804f86ee;p=vpp.git diff --git a/src/vpp/api/custom_dump.c b/src/vpp/api/custom_dump.c index 44aaf82a73c..e40a7dca938 100644 --- a/src/vpp/api/custom_dump.c +++ b/src/vpp/api/custom_dump.c @@ -726,9 +726,6 @@ static void *vl_api_ip_add_del_route_t_print if (mp->is_add == 0) s = format (s, "del "); - if (mp->next_hop_sw_if_index != ~0) - s = format (s, "sw_if_index %d ", ntohl (mp->next_hop_sw_if_index)); - if (mp->is_ipv6) s = format (s, "%U/%d ", format_ip6_address, mp->dst_address, mp->dst_address_length); @@ -753,6 +750,9 @@ static void *vl_api_ip_add_del_route_t_print s = format (s, "via %U ", format_ip6_address, mp->next_hop_address); else s = format (s, "via %U ", format_ip4_address, mp->next_hop_address); + if (mp->next_hop_sw_if_index != ~0) + s = format (s, "sw_if_index %d ", ntohl (mp->next_hop_sw_if_index)); + } if (mp->next_hop_weight != 1)