Skip to content

Commit

Permalink
multicast: T6920: static multicast routing throws TypeError (#4210)
Browse files Browse the repository at this point in the history
  • Loading branch information
natali-rs1985 authored Nov 28, 2024
1 parent 37859ee commit 56fb46f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/conf_mode/protocols_static_multicast.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 56fb46f

Please sign in to comment.