Skip to content

Execute Python Issue #397

@solaconsay

Description

@solaconsay

Getting issue when using Execute Python node. This was working last week though.

Exception: 'Tools' object has no attribute 'singul'

Image

`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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions