span: API cleanup
[vpp.git] / extras / vom / vom / bond_interface_cmds.cpp
index d59560d..b5b459a 100644 (file)
@@ -43,15 +43,16 @@ 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());
 
-  m_hw_item = wait();
+  wait();
+
   if (m_hw_item.rc() == rc_t::OK) {
     insert_interface();
   }