summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Loeliger <jdl@netgate.com>2017-02-21 13:49:37 -0600
committerDave Barach <openvpp@barachs.net>2017-02-22 12:54:29 +0000
commitd45602078d01fb37cd9bb06d203dd3946b872c09 (patch)
tree7532c80b80e8f417749ae6a65adf420b3339e0c3
parent694396dc589b4fe75b1fad02fde1d3c3cdaeef04 (diff)
Repair SNAT's IPFIX and IF-add-del test functions.
Inspection shows that the names of two functions: api_snat_ipfix_enable_disable() api_snat_add_del_interface_addr() don't match their bodies and have been swapped. Make the world right again by swapping them to match. Change-Id: Ieefd7f0fdbf52794e8649b0cbbcf6e1403c1b90a Signed-off-by: Jon Loeliger <jdl@netgate.com>
-rw-r--r--src/plugins/snat/snat_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/snat/snat_test.c b/src/plugins/snat/snat_test.c
index 136c1c49e78..a299e0ac68b 100644
--- a/src/plugins/snat/snat_test.c
+++ b/src/plugins/snat/snat_test.c
@@ -540,7 +540,7 @@ static int api_snat_worker_dump(vat_main_t * vam)
return ret;
}
-static int api_snat_ipfix_enable_disable (vat_main_t * vam)
+static int api_snat_add_del_interface_addr (vat_main_t * vam)
{
unformat_input_t * i = vam->input;
vl_api_snat_add_del_interface_addr_t * mp;
@@ -611,7 +611,7 @@ static int api_snat_interface_addr_dump(vat_main_t * vam)
return ret;
}
-static int api_snat_add_del_interface_addr (vat_main_t * vam)
+static int api_snat_ipfix_enable_disable (vat_main_t * vam)
{
unformat_input_t * i = vam->input;
vl_api_snat_ipfix_enable_disable_t * mp;