CORD_1598 - The Egress VLAN is not configurable in the IGMP proxy outbound packets
Change-Id: Icb6b9a8fb802c6b58b73a84a4d9f9d6238822afe
diff --git a/src/main/java/org/opencord/igmpproxy/IgmpManager.java b/src/main/java/org/opencord/igmpproxy/IgmpManager.java
index 4194b92..967e467 100644
--- a/src/main/java/org/opencord/igmpproxy/IgmpManager.java
+++ b/src/main/java/org/opencord/igmpproxy/IgmpManager.java
@@ -191,6 +191,7 @@
McastConfig config = networkConfig.getConfig(coreAppId, MCAST_CONFIG_CLASS);
if (config != null) {
mvlan = config.egressVlan().toShort();
+ IgmpSender.getInstance().setMvlan(mvlan);
}
deviceService.addListener(deviceListener);
scheduledExecutorService.scheduleAtFixedRate(new IgmpProxyTimerTask(), 0, 1000, TimeUnit.MILLISECONDS);
@@ -718,6 +719,7 @@
McastConfig config = networkConfig.getConfig(coreAppId, MCAST_CONFIG_CLASS);
if (config != null && mvlan != config.egressVlan().toShort()) {
mvlan = config.egressVlan().toShort();
+ IgmpSender.getInstance().setMvlan(mvlan);
groupMemberMap.values().forEach(m -> leaveAction(m));
}
}