summaryrefslogtreecommitdiffstats
path: root/extras/vom/vom/gbp_endpoint_group.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'extras/vom/vom/gbp_endpoint_group.cpp')
-rw-r--r--extras/vom/vom/gbp_endpoint_group.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/extras/vom/vom/gbp_endpoint_group.cpp b/extras/vom/vom/gbp_endpoint_group.cpp
index 78fdeeab1c8..5f09ed1ffc3 100644
--- a/extras/vom/vom/gbp_endpoint_group.cpp
+++ b/extras/vom/vom/gbp_endpoint_group.cpp
@@ -198,6 +198,15 @@ gbp_endpoint_group::event_handler::handle_populate(const client_db::key_t& key)
OM::commit(key, gbpe);
VOM_LOG(log_level_t::DEBUG) << "read: " << gbpe.to_string();
+ } else if (bd && rd) {
+ gbp_endpoint_group gbpe(payload.epg.epg_id, *rd, *bd);
+ OM::commit(key, gbpe);
+
+ VOM_LOG(log_level_t::DEBUG) << "read: " << gbpe.to_string();
+ } else {
+ VOM_LOG(log_level_t::ERROR) << "no itf:" << payload.epg.uplink_sw_if_index
+ << " or BD:" << payload.epg.bd_id
+ << " or RD:" << payload.epg.rd_id;
}
}
}