Skip to content

IpAndCidrAction

ReservedIPAction(parsers={}, supportedType={'ip', 'ipv6'}, complex_param={'Reserved': {'type': 'bool', 'value': False}})

Bases: actionInterface

Parse IP to sort reserved/local IP. By default returns only IP that are NOT reserved or local.

You can set the Reserved parameter to True to return only the reserved IP addresses.

ToCIDR24Action(parsers={}, supportedType={'cidr', 'ip'})

Bases: actionInterface

A action module, to return a list of /24 CIDR from a bigger CIDR. Usefull to create regex matching CIDRs.