summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-02-22 20:05:45 +0100
committerChristian Breunig <christian@breunig.cc>2026-02-22 20:32:35 +0100
commitea8aa399c520e129f0a4e7e88b6eedad2cef55c9 (patch)
treefb1f36333999db8245092a073f4a700660cfafb5 /src
parent61ba7ee632fd2ee8fe58b636087e539da89c6e65 (diff)
downloadvyos-1x-ea8aa399c520e129f0a4e7e88b6eedad2cef55c9.tar.gz
vyos-1x-ea8aa399c520e129f0a4e7e88b6eedad2cef55c9.zip
igmp-proxy: T8295: fix invalid indention level (5 instead of 4)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/protocols_igmp-proxy.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/conf_mode/protocols_igmp-proxy.py b/src/conf_mode/protocols_igmp-proxy.py
index c2d2fea5b..67ff8a3f0 100755
--- a/src/conf_mode/protocols_igmp-proxy.py
+++ b/src/conf_mode/protocols_igmp-proxy.py
@@ -87,18 +87,18 @@ def generate(igmp_proxy):
return None
render(config_file, 'igmp-proxy/igmpproxy.conf.j2', igmp_proxy)
-
return None
def apply(igmp_proxy):
+ service_name = 'igmpproxy.service'
if not igmp_proxy or 'disable' in igmp_proxy:
- # IGMP Proxy support is removed in the commit
- call('systemctl stop igmpproxy.service')
- if os.path.exists(config_file):
- os.unlink(config_file)
- else:
- call('systemctl restart igmpproxy.service')
+ # IGMP Proxy support is removed in the commit
+ call(f'systemctl stop {service_name}')
+ if os.path.exists(config_file):
+ os.unlink(config_file)
+ return None
+ call(f'systemctl restart {service_name}')
return None
if __name__ == '__main__':