EXPAND ALL
- Home
- About Pixie
- Installing Pixie
- Using Pixie
- Tutorials
- Reference
Determine whether the given IP is within anyone of the CIDR ranges provided. For example, 10.0.0.1 is contained in the CIDR range 10.0.0.0/24.
boolean representing whether the given IP is in any one of the given CIDR ranges.
Variable | Type | Description |
---|---|---|
cidrs | STRING | Json array of CIDR ranges, where each CIDR range is a string of format '<IP>/<prefix_length>' |
ip_addr | STRING | IP address to check for presence in range. |
df.cluster_cidrs = px.get_cidrs()| df.ip_is_in_cluster = px.cidrs_contain_ip(df.cluster_cidrs, df.remote_addr)