X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fvom%2Fvom%2Fgbp_route_domain_cmds.cpp;h=90e81f338e36ebc97a1e41d72982c83cca742b0a;hb=4d56b18ce595a43ff5de1d168d66eab98560e7a7;hp=9b8b4bee3fd018bb3822bbe1a1347b176bceb942;hpb=d7d6e97d3cd096a2b017f2316436d86a9fe7660b;p=vpp.git diff --git a/extras/vom/vom/gbp_route_domain_cmds.cpp b/extras/vom/vom/gbp_route_domain_cmds.cpp index 9b8b4bee3fd..90e81f338e3 100644 --- a/extras/vom/vom/gbp_route_domain_cmds.cpp +++ b/extras/vom/vom/gbp_route_domain_cmds.cpp @@ -19,9 +19,11 @@ namespace VOM { namespace gbp_route_domain_cmds { create_cmd::create_cmd(HW::item& item, + scope_t scope, const handle_t ip4_uu_fwd, const handle_t ip6_uu_fwd) : rpc_cmd(item) + , m_scope(scope) , m_ip4_uu_fwd(ip4_uu_fwd) , m_ip6_uu_fwd(ip6_uu_fwd) { @@ -31,7 +33,7 @@ bool create_cmd::operator==(const create_cmd& other) const { return ((m_hw_item.data() == other.m_hw_item.data()) && - (m_ip4_uu_fwd == other.m_ip4_uu_fwd) && + (m_scope == other.m_scope) && (m_ip4_uu_fwd == other.m_ip4_uu_fwd) && (m_ip6_uu_fwd == other.m_ip6_uu_fwd)); } @@ -43,6 +45,7 @@ create_cmd::issue(connection& con) auto& payload = req.get_request().get_payload(); payload.rd.rd_id = m_hw_item.data(); + payload.rd.scope = m_scope; payload.rd.ip4_table_id = m_hw_item.data(); payload.rd.ip6_table_id = m_hw_item.data(); payload.rd.ip4_uu_sw_if_index = m_ip4_uu_fwd.value(); @@ -57,7 +60,7 @@ std::string create_cmd::to_string() const { std::ostringstream s; - s << "gbp-route-domain: " << m_hw_item.to_string() + s << "gbp-route-domain: " << m_hw_item.to_string() << " scope:" << m_scope << " ip4-uu-fwd:" << m_ip4_uu_fwd.to_string() << " ip6-uu-fwd:" << m_ip6_uu_fwd.to_string();