An open API service indexing awesome lists of open source software.

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

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 <