X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fvom%2Fvom%2Fgbp_subnet.cpp;h=bc897f125dbba75d9e62e6f61f281efd395ed107;hb=7c0eb56f4;hp=35422e2a6d4dea9a273f5b87bd9dc2b0b57a7255;hpb=5cbf7c7a88de1db7bc244b7da03ece6a4a977e45;p=vpp.git diff --git a/extras/vom/vom/gbp_subnet.cpp b/extras/vom/vom/gbp_subnet.cpp index 35422e2a6d4..bc897f125db 100644 --- a/extras/vom/vom/gbp_subnet.cpp +++ b/extras/vom/vom/gbp_subnet.cpp @@ -33,6 +33,7 @@ const gbp_subnet::type_t gbp_subnet::type_t::STITCHED_EXTERNAL( "stitched-external"); const gbp_subnet::type_t gbp_subnet::type_t::TRANSPORT(2, "transport"); const gbp_subnet::type_t gbp_subnet::type_t::L3_OUT(3, "l3-out"); +const gbp_subnet::type_t gbp_subnet::type_t::ANON_L3_OUT(4, "anon-l3-out"); singular_db gbp_subnet::m_db; @@ -67,11 +68,12 @@ gbp_subnet::gbp_subnet(const gbp_route_domain& rd, gbp_subnet::gbp_subnet(const gbp_route_domain& rd, const route::prefix_t& prefix, - sclass_t sclass) + sclass_t sclass, + const type_t& type) : m_hw(false) , m_rd(rd.singular()) , m_prefix(prefix) - , m_type(type_t::L3_OUT) + , m_type(type) , m_recirc(nullptr) , m_epg() , m_sclass(sclass) @@ -239,6 +241,12 @@ gbp_subnet::event_handler::handle_populate(const client_db::key_t& key) VOM_LOG(log_level_t::DEBUG) << "read: " << gs.to_string(); break; } + case GBP_API_SUBNET_ANON_L3_OUT: { + gbp_subnet gs(*rd, pfx, payload.subnet.sclass, type_t::ANON_L3_OUT); + OM::commit(key, gs); + VOM_LOG(log_level_t::DEBUG) << "read: " << gs.to_string(); + break; + } case GBP_API_SUBNET_STITCHED_EXTERNAL: { std::shared_ptr itf = interface::find(payload.subnet.sw_if_index);