VAT: don't pass u8 to unformat - it expects an 4 byte integer 19/3919/2
authorNeale Ranns <nranns@cisco.com>
Tue, 22 Nov 2016 12:16:59 +0000 (12:16 +0000)
committerDave Wallace <dwallacelf@gmail.com>
Tue, 22 Nov 2016 14:29:02 +0000 (14:29 +0000)
Change-Id: I82f21a77b96b9d9f00a4d3cf261bb4bd4644460b
Signed-off-by: Neale Ranns <nranns@cisco.com>
vpp-api-test/vat/api_format.c

index 00bb976..549bd03 100644 (file)
@@ -5768,7 +5768,7 @@ api_ip_add_del_route (vat_main_t * vam)
   u8 is_unreach = 0, is_prohibit = 0;
   u8 create_vrf_if_needed = 0;
   u8 is_add = 1;
-  u8 next_hop_weight = 1;
+  u32 next_hop_weight = 1;
   u8 not_last = 0;
   u8 is_multipath = 0;
   u8 address_set = 0;
@@ -6054,7 +6054,7 @@ api_mpls_route_add_del (vat_main_t * vam)
   u32 sw_if_index = ~0, table_id = 0;
   u8 create_table_if_needed = 0;
   u8 is_add = 1;
-  u8 next_hop_weight = 1;
+  u32 next_hop_weight = 1;
   u8 is_multipath = 0;
   u32 next_hop_table_id = 0;
   u8 next_hop_set = 0;