https://github.com/upbound/function-cidr
Composition Function that transforms CIDRs
https://github.com/upbound/function-cidr
Last synced: about 1 year ago
JSON representation
Composition Function that transforms CIDRs
- Host: GitHub
- URL: https://github.com/upbound/function-cidr
- Owner: upbound
- License: apache-2.0
- Created: 2023-05-27T00:25:17.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-04T22:45:49.000Z (about 1 year ago)
- Last Synced: 2025-05-08T23:45:00.322Z (about 1 year ago)
- Language: Go
- Size: 101 KB
- Stars: 7
- Watchers: 7
- Forks: 5
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# function-cidr
A [Crossplane](https://www.crossplane.io/)
[Composition Function](https://docs.crossplane.io/latest/concepts/composition-functions/)
for calculating Classless Inter-Domain Routing
([CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing))
numbers.
A CIDR is an IP address allocation method that is used to improve
data routing efficiency on the internet.
## Overview
This composition function offers 4 HashiCorp compatible IP Network Functions
plus two custom wrappers. Follow the function links for detailed explanations of
the function semantics.
- [cidrhost](https://developer.hashicorp.com/terraform/language/functions/cidrhost)
- [cidrnetmask](https://developer.hashicorp.com/terraform/language/functions/cidrnetmask)
- [cidrsubnet](https://developer.hashicorp.com/terraform/language/functions/cidrsubnet)
- [cidrsubnets](https://developer.hashicorp.com/terraform/language/functions/cidrsubnets)
- cidrsubnetloop wraps [cidrsubnet](https://developer.hashicorp.com/terraform/language/functions/cidrsubnet)
- multiprefixloop wraps [cidrsubnets](https://developer.hashicorp.com/terraform/language/functions/cidrsubnets)
To use this function, apply the following
[functions.yaml](examples/functions.yaml)
to your Crossplane management cluster.
```bash
cat <