summaryrefslogtreecommitdiff
path: root/src/conf_mode/igmp_proxy.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf_mode/igmp_proxy.py')
-rwxr-xr-xsrc/conf_mode/igmp_proxy.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/conf_mode/igmp_proxy.py b/src/conf_mode/igmp_proxy.py
index cd0704124..0e1c2c569 100755
--- a/src/conf_mode/igmp_proxy.py
+++ b/src/conf_mode/igmp_proxy.py
@@ -76,6 +76,13 @@ default_config_data = {
def get_config():
igmp_proxy = default_config_data
conf = Config()
+
+ if conf.exists('protocols igmp'):
+ igmp_proxy['igmp_configured'] = True
+
+ if conf.exists('protocols pim'):
+ igmp_proxy['pim_configured'] = True
+
if not conf.exists('protocols igmp-proxy'):
return None
else:
@@ -125,6 +132,10 @@ def verify(igmp_proxy):
if igmp_proxy['disable']:
return None
+ if 'igmp_configured' in igmp_proxy or 'pim_configured' in igmp_proxy:
+ raise ConfigError('Can not configure both IGMP proxy and PIM '\
+ 'at the same time')
+
# at least two interfaces are required, one upstream and one downstream
if len(igmp_proxy['interfaces']) < 2:
raise ConfigError('Must define an upstream and at least 1 downstream interface!')