@@ -1408,6 +1408,12 @@ fanout_to_chassis(enum mf_field_id mff_ovn_geneve,
}
}
+static bool
+chassis_is_vtep(const struct sbrec_chassis *chassis)
+{
+ return smap_get_bool(&chassis->other_config, "is-vtep", false);
+}
+
static void
consider_mc_group(struct ovsdb_idl_index *sbrec_port_binding_by_name,
enum mf_field_id mff_ovn_geneve,
@@ -1519,8 +1525,7 @@ consider_mc_group(struct ovsdb_idl_index *sbrec_port_binding_by_name,
/* Add remote chassis only when localnet port not exist,
* otherwise multicast will reach remote ports through localnet
* port. */
- if (smap_get_bool(&port->chassis->other_config,
- "is-vtep", false)) {
+ if (chassis_is_vtep(port->chassis)) {
sset_add(&vtep_chassis, port->chassis->name);
} else {
sset_add(&remote_chassis, port->chassis->name);
This tiny helper will be reused later. Signed-off-by: Ihar Hrachyshka <ihrachys@redhat.com> --- controller/physical.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)