summaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorPavel Kotucek <pavel.kotucek@pantheon.tech>2018-11-27 09:59:44 +0100
committerNeale Ranns <nranns@cisco.com>2018-11-29 08:49:17 +0000
commit609e1210c6339376dd6cdd0f79195b436d5614d2 (patch)
tree5483c93c35261230750e67e5277108b8b081f65b /extras
parentdfe4cf48ae344b882f0fd53d08b6917ef4391530 (diff)
VPP-1507: Added binary api to dump configured ip_punt_redirect
Change-Id: I790f7785e183cc9aaffd5b593617c4e12a32e20d Signed-off-by: Pavel Kotucek <pavel.kotucek@pantheon.tech>
Diffstat (limited to 'extras')
-rw-r--r--extras/vom/vom/ip_punt_redirect_cmds.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/extras/vom/vom/ip_punt_redirect_cmds.cpp b/extras/vom/vom/ip_punt_redirect_cmds.cpp
index 8ab6005eddb..eda6929e2d1 100644
--- a/extras/vom/vom/ip_punt_redirect_cmds.cpp
+++ b/extras/vom/vom/ip_punt_redirect_cmds.cpp
@@ -14,6 +14,7 @@
*/
#include "vom/ip_punt_redirect_cmds.hpp"
+#include <vom/api_types.hpp>
namespace VOM {
namespace ip_punt_redirect_cmds {
@@ -44,10 +45,9 @@ config_cmd::issue(connection& con)
auto& payload = req.get_request().get_payload();
payload.is_add = 1;
- payload.rx_sw_if_index = m_rx_itf.value();
- payload.tx_sw_if_index = m_tx_itf.value();
-
- to_bytes(m_addr, &payload.is_ip6, payload.nh);
+ payload.punt.rx_sw_if_index = m_rx_itf.value();
+ payload.punt.tx_sw_if_index = m_tx_itf.value();
+ payload.punt.nh = to_api(m_addr);
VAPI_CALL(req.execute());
@@ -91,10 +91,9 @@ unconfig_cmd::issue(connection& con)
auto& payload = req.get_request().get_payload();
payload.is_add = 0;
- payload.rx_sw_if_index = m_rx_itf.value();
- payload.tx_sw_if_index = m_tx_itf.value();
-
- to_bytes(m_addr, &payload.is_ip6, payload.nh);
+ payload.punt.rx_sw_if_index = m_rx_itf.value();
+ payload.punt.tx_sw_if_index = m_tx_itf.value();
+ payload.punt.nh = to_api(m_addr);
VAPI_CALL(req.execute());