diff options
author | Jakub Grajciar <jgrajcia@cisco.com> | 2018-10-04 11:05:35 +0200 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2018-10-16 08:28:15 +0000 |
commit | 97748cae2e6261d8fdc7c331a4d82828ac51ed81 (patch) | |
tree | 503ec3556042aef7d0b1575baca06fd239d09828 /src/plugins/igmp/igmp_group.c | |
parent | 02a95ce8d53caeba07a3c027b12339f44f3093b8 (diff) |
IGMP: proxy device
Create 'proxy device' per VRF and add one upstream
and one or many downstream interfaces.
Change-Id: I1cef05fb01e73a5b483c7a2f4debaaeffe2c8155
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Diffstat (limited to 'src/plugins/igmp/igmp_group.c')
-rw-r--r-- | src/plugins/igmp/igmp_group.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/plugins/igmp/igmp_group.c b/src/plugins/igmp/igmp_group.c index fe023a46167..9f50ad9b05a 100644 --- a/src/plugins/igmp/igmp_group.c +++ b/src/plugins/igmp/igmp_group.c @@ -74,6 +74,14 @@ igmp_group_clear (igmp_group_t * group) 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, @@ -116,6 +124,15 @@ igmp_group_alloc (igmp_config_t * config, 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); } |