aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp
diff options
context:
space:
mode:
authorEyal Bari <ebari@cisco.com>2017-04-04 04:23:52 +0300
committerJohn Lo <loj@cisco.com>2017-04-04 13:59:46 +0000
commit8328534a2734b64e5da791007fd346c54cdb4d32 (patch)
tree8c493de71f1e65d92413eb1d378ed423d0ee0190 /src/vpp
parent2e01dfa25dd47488e6120bfcaea567fc1093f0b8 (diff)
VXLAN:fix api dump flipped src<->dst
Change-Id: I48bf6c46d78773669e76dc4749be3b1af80782f4 Signed-off-by: Eyal Bari <ebari@cisco.com>
Diffstat (limited to 'src/vpp')
-rw-r--r--src/vpp/api/custom_dump.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/vpp/api/custom_dump.c b/src/vpp/api/custom_dump.c
index 1e841eff..fd4f7fef 100644
--- a/src/vpp/api/custom_dump.c
+++ b/src/vpp/api/custom_dump.c
@@ -1384,8 +1384,8 @@ static void *vl_api_vxlan_add_del_tunnel_t_print
u8 *s;
s = format (0, "SCRIPT: vxlan_add_del_tunnel ");
- ip46_address_t src = to_ip46 (mp->is_ipv6, mp->dst_address);
- ip46_address_t dst = to_ip46 (mp->is_ipv6, mp->src_address);
+ ip46_address_t src = to_ip46 (mp->is_ipv6, mp->src_address);
+ ip46_address_t dst = to_ip46 (mp->is_ipv6, mp->dst_address);
u8 is_grp = ip46_address_is_multicast (&dst);
char *dst_name = is_grp ? "group" : "dst";
@@ -1407,9 +1407,6 @@ static void *vl_api_vxlan_add_del_tunnel_t_print
if (mp->is_add == 0)
s = format (s, "del ");
- if (mp->is_add == 0)
- s = format (s, "del ");
-
FINISH;
}