aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/lisp-gpe/lisp_gpe.c
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2017-06-14 14:39:42 +0200
committerFlorin Coras <florin.coras@gmail.com>2017-06-15 21:31:59 +0000
commitb4243aaa7ac53075a3d02e4e1fed4435250e8078 (patch)
tree71a878905105c72eea73f0449bce0a4f59cce400 /src/vnet/lisp-gpe/lisp_gpe.c
parent779c3e3a632f887a7249a5cae8cce6eeacb67e3f (diff)
Add VAT handlers for LISP-GPE API
Change-Id: Id1139533c41cabef48394b5d79750608e0b74179 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/vnet/lisp-gpe/lisp_gpe.c')
-rw-r--r--src/vnet/lisp-gpe/lisp_gpe.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vnet/lisp-gpe/lisp_gpe.c b/src/vnet/lisp-gpe/lisp_gpe.c
index ea6c143d917..d274818d46f 100644
--- a/src/vnet/lisp-gpe/lisp_gpe.c
+++ b/src/vnet/lisp-gpe/lisp_gpe.c
@@ -404,8 +404,9 @@ gpe_show_native_fwd_rpath_command_fn (vlib_main_t * vm,
vec_foreach (rpath, lgm->native_fwd_rpath[IP4])
{
vlib_cli_output (vm, "nh: %U fib_index %u sw_if_index %u",
- format_ip46_address, &rpath->frp_addr, 1,
- rpath->frp_fib_index, rpath->frp_sw_if_index);
+ format_ip46_address, &rpath->frp_addr,
+ IP46_TYPE_IP4, rpath->frp_fib_index,
+ rpath->frp_sw_if_index);
}
}
if (vec_len (lgm->native_fwd_rpath[IP6]))
@@ -413,7 +414,7 @@ gpe_show_native_fwd_rpath_command_fn (vlib_main_t * vm,
vec_foreach (rpath, lgm->native_fwd_rpath[IP6])
{
vlib_cli_output (vm, "nh: %U fib_index %u sw_if_index %u",
- format_ip46_address, &rpath->frp_addr, 1,
+ format_ip46_address, &rpath->frp_addr, IP46_TYPE_IP6,
rpath->frp_fib_index, rpath->frp_sw_if_index);
}
}