aboutsummaryrefslogtreecommitdiffstats
path: root/extras/vom
diff options
context:
space:
mode:
authorJakub Grajciar <jgrajcia@cisco.com>2019-08-26 12:55:15 +0200
committerOle Trøan <otroan@employees.org>2019-09-11 15:14:02 +0000
commit3d1ef873da900ddf4ef18d5cf7709aab70ed6b7d (patch)
treef1fa77818a9a67e2f149ba540bcb251dc9f4f10b /extras/vom
parent558e3e09577a7b49e2fec58e8ac27f3f3ae0592f (diff)
bonding: API cleanup
Use consistent API types. Type: fix Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com> Change-Id: Idbba4ab6a412b75338e3149e51476693f0862f16 Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Diffstat (limited to 'extras/vom')
-rw-r--r--extras/vom/vom/bond_interface_cmds.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/vom/vom/bond_interface_cmds.cpp b/extras/vom/vom/bond_interface_cmds.cpp
index a43a832222a..b5b459a0d42 100644
--- a/extras/vom/vom/bond_interface_cmds.cpp
+++ b/extras/vom/vom/bond_interface_cmds.cpp
@@ -43,11 +43,11 @@ create_cmd::issue(connection& con)
payload.use_custom_mac = 1;
}
- payload.mode = m_mode.value();
+ payload.mode = (vapi_enum_bond_mode)m_mode.value();
if ((m_mode == bond_interface::mode_t::XOR ||
m_mode == bond_interface::mode_t::LACP) &&
m_lb != bond_interface::lb_t::UNSPECIFIED)
- payload.lb = m_lb.value();
+ payload.lb = (vapi_enum_bond_lb_algo)m_lb.value();
VAPI_CALL(req.execute());