X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fvom%2Fvom%2Fvxlan_gbp_tunnel_cmds.cpp;h=db4e7fc796c5db9c8f278ed783e185065e25a0f7;hb=4dd4cf4f9c02953f8ce7df0b2912e4da7c6786ed;hp=24d1883ed759370611e399f429a4d425aa7b98ed;hpb=d709cbcb1ef80633af657c5427608831e5bbd919;p=vpp.git diff --git a/extras/vom/vom/vxlan_gbp_tunnel_cmds.cpp b/extras/vom/vom/vxlan_gbp_tunnel_cmds.cpp index 24d1883ed75..db4e7fc796c 100644 --- a/extras/vom/vom/vxlan_gbp_tunnel_cmds.cpp +++ b/extras/vom/vom/vxlan_gbp_tunnel_cmds.cpp @@ -24,9 +24,11 @@ namespace vxlan_gbp_tunnel_cmds { create_cmd::create_cmd(HW::item& item, const std::string& name, const vxlan_tunnel::endpoint_t& ep, + bool is_l2, handle_t mcast_itf) : interface::create_cmd(item, name) , m_ep(ep) + , m_is_l2(is_l2) , m_mcast_itf(mcast_itf) { } @@ -52,6 +54,8 @@ create_cmd::issue(connection& con) payload.tunnel.encap_table_id = 0; payload.tunnel.vni = m_ep.vni; payload.tunnel.instance = ~0; + payload.tunnel.mode = + (m_is_l2 ? VXLAN_GBP_API_TUNNEL_MODE_L2 : VXLAN_GBP_API_TUNNEL_MODE_L3); VAPI_CALL(req.execute());