summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNataliia S. <81954790+natali-rs1985@users.noreply.github.com>2024-11-28 19:43:26 +0200
committerGitHub <noreply@github.com>2024-11-28 19:43:26 +0200
commit56fb46f392187434a7ccf7504d2e1d1bf46c8377 (patch)
treeff40e43b7be9a5115b0621d64ab9aa66aa140b14 /src
parent37859ee69da3e78a85d741de5c20edf227c548bb (diff)
downloadvyos-1x-56fb46f392187434a7ccf7504d2e1d1bf46c8377.tar.gz
vyos-1x-56fb46f392187434a7ccf7504d2e1d1bf46c8377.zip
multicast: T6920: static multicast routing throws TypeError (#4210)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/protocols_static_multicast.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/protocols_static_multicast.py b/src/conf_mode/protocols_static_multicast.py
index d323ceb4f..c8894fd41 100755
--- a/src/conf_mode/protocols_static_multicast.py
+++ b/src/conf_mode/protocols_static_multicast.py
@@ -86,10 +86,10 @@ def verify(mroute):
if mroute is None:
return None
- for route in mroute['mroute']:
- route = route.split('/')
+ for mcast_route in mroute['mroute']:
+ route = mcast_route.split('/')
if IPv4Address(route[0]) < IPv4Address('224.0.0.0'):
- raise ConfigError(route + " not a multicast network")
+ raise ConfigError(f'{mcast_route} not a multicast network')
def generate(mroute):