X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fvom%2Fvom%2Fvxlan_tunnel_cmds.cpp;h=e45b6046355573b67db4c339963e9001a0575d7b;hb=cf3ecb1a42c9c40f386ed59964117c3dab15fa5c;hp=dcc06e7179758b1c15f1fab93cfdf8bd35065a02;hpb=11312ef90b334c43966c057591c5a54750d911d2;p=vpp.git diff --git a/extras/vom/vom/vxlan_tunnel_cmds.cpp b/extras/vom/vom/vxlan_tunnel_cmds.cpp index dcc06e71797..e45b6046355 100644 --- a/extras/vom/vom/vxlan_tunnel_cmds.cpp +++ b/extras/vom/vom/vxlan_tunnel_cmds.cpp @@ -22,9 +22,11 @@ namespace vxlan_tunnel_cmds { create_cmd::create_cmd(HW::item& item, const std::string& name, - const vxlan_tunnel::endpoint_t& ep) + const vxlan_tunnel::endpoint_t& ep, + handle_t mcast_itf) : interface::create_cmd(item, name) , m_ep(ep) + , m_mcast_itf(mcast_itf) { } @@ -44,7 +46,7 @@ create_cmd::issue(connection& con) payload.is_ipv6 = 0; to_bytes(m_ep.src, &payload.is_ipv6, payload.src_address); to_bytes(m_ep.dst, &payload.is_ipv6, payload.dst_address); - payload.mcast_sw_if_index = ~0; + payload.mcast_sw_if_index = m_mcast_itf.value(); payload.encap_vrf_id = 0; payload.decap_next_index = ~0; payload.vni = m_ep.vni;