config = igmp_config_get (group->config);
+ /* If interface is in ROUTER mode and IGMP proxy is enabled
+ * remove mfib path.
+ */
+ if (config->mode == IGMP_MODE_ROUTER)
+ {
+ igmp_proxy_device_mfib_path_add_del (group, /* add */ 0);
+ }
+
IGMP_DBG ("clear-group: %U %U",
format_igmp_key, group->key,
format_vnet_sw_if_index_name,
group->timers[ii] = IGMP_TIMER_ID_INVALID;
hash_set_mem (config->igmp_group_by_key, group->key, group - im->groups);
+
+ /* If interface is in ROUTER mode and IGMP proxy is enabled
+ * add mfib path.
+ */
+ if (config->mode == IGMP_MODE_ROUTER)
+ {
+ igmp_proxy_device_mfib_path_add_del (group, /* add */ 1);
+ }
+
return (group);
}