-
-
Notifications
You must be signed in to change notification settings - Fork 123
Open
Description
Getting issue when using Execute Python node. This was working last week though.
Exception: 'Tools' object has no attribute 'singul'
`import ipaddress
ip1 = "$data.all_fields.data.srcip"
ip2 = "$data.all_fields.agent.ip"
subnet_mask = "255.255.255.0"
try:
same_subnet = ipaddress.IPv4Network(f"{ip1}/{subnet_mask}", strict=False).network_address ==
ipaddress.IPv4Network(f"{ip2}/{subnet_mask}", strict=False).network_address
except ValueError:
same_subnet = False
print(same_subnet)
`
Metadata
Metadata
Assignees
Labels
No labels
