diff options
author | Neale Ranns <nranns@cisco.com> | 2018-10-24 02:57:49 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-11-06 21:23:18 +0000 |
commit | 4d5b917b1a74461abaa30182d4bf5c7761572323 (patch) | |
tree | a92e08d4de07934dcb49c63661e0ddd74ad0c5a6 /extras/vom | |
parent | 65ed2d0503bc8d9a6a66ca1ece87e3e876ff95cc (diff) |
BD ARP entry use common API types
Change-Id: I29f20dbaf2c2d735faff297cee552ed648f6f61b
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'extras/vom')
-rw-r--r-- | extras/vom/vom/bridge_domain_arp_entry_cmds.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/extras/vom/vom/bridge_domain_arp_entry_cmds.cpp b/extras/vom/vom/bridge_domain_arp_entry_cmds.cpp index 188d7738a6c..4e5dfb0f2f4 100644 --- a/extras/vom/vom/bridge_domain_arp_entry_cmds.cpp +++ b/extras/vom/vom/bridge_domain_arp_entry_cmds.cpp @@ -14,6 +14,7 @@ */ #include "vom/bridge_domain_arp_entry_cmds.hpp" +#include "vom/api_types.hpp" namespace VOM { namespace bridge_domain_arp_entry_cmds { @@ -44,8 +45,8 @@ create_cmd::issue(connection& con) auto& payload = req.get_request().get_payload(); payload.bd_id = m_bd; payload.is_add = 1; - m_mac.to_bytes(payload.mac_address, 6); - to_bytes(m_ip_addr, &payload.is_ipv6, payload.ip_address); + payload.mac = to_api(m_mac); + payload.ip = to_api(m_ip_addr); VAPI_CALL(req.execute()); @@ -89,8 +90,8 @@ delete_cmd::issue(connection& con) auto& payload = req.get_request().get_payload(); payload.bd_id = m_bd; payload.is_add = 0; - m_mac.to_bytes(payload.mac_address, 6); - to_bytes(m_ip_addr, &payload.is_ipv6, payload.ip_address); + payload.mac = to_api(m_mac); + payload.ip = to_api(m_ip_addr); VAPI_CALL(req.execute()); |