aboutsummaryrefslogtreecommitdiffstats
path: root/vpp-api-test/vat/api_format.c
diff options
context:
space:
mode:
authorNeale <nranns@cisco.com>2016-07-01 13:00:09 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2016-07-07 19:33:43 +0000
commite9dbd2b7819efdb2a3d2f92334c2e25849068e00 (patch)
treed576bc91e0dc7af186d0099cad41636144dccff3 /vpp-api-test/vat/api_format.c
parent689acafcabbc229a89cdbe5e628ca5e7a573afb2 (diff)
VPP-142 Recursive route sending traffic to wrong interface
Indirect routes should always result in an indriect adjacency even when the route's next-hop is covered by a connceted, since the covering route may change and no tracking is in place. Some de-duplication of code for installing indirect routes via the CLI and API. Change-Id: I7a440ffba43ae3990b68cb407244c06bd0827534 Signed-off-by: Neale <nranns@cisco.com>
Diffstat (limited to 'vpp-api-test/vat/api_format.c')
-rw-r--r--vpp-api-test/vat/api_format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vpp-api-test/vat/api_format.c b/vpp-api-test/vat/api_format.c
index 6b5271dd..d4bc27bd 100644
--- a/vpp-api-test/vat/api_format.c
+++ b/vpp-api-test/vat/api_format.c
@@ -4269,7 +4269,7 @@ static int api_ip_add_del_route (vat_main_t * vam)
unformat_input_t * i = vam->input;
vl_api_ip_add_del_route_t *mp;
f64 timeout;
- u32 sw_if_index = 0, vrf_id = 0;
+ u32 sw_if_index = ~0, vrf_id = 0;
u8 sw_if_index_set = 0;
u8 is_ipv6 = 0;
u8 is_local = 0, is_drop = 0;