vino/config/samples/ippool.yaml
Matt McEuen 2ca909855f Add MAC Address Management
This adds MAC address management into the existing IPAM functionality
and CRD.  The ViNO CR is augmented to supply a MAC Prefix.  This prefix
is used as the first in a sequence of consecutive MAC addresses that
the IPAM code will generate when needed.

Note, there is no upper bounds checking on MAC addresses
(no End defined for the MAC Range), operating under the assumption
that the MAC addresses are for intents and purposes inexhaustable:
all RFC 1918 private MAC ranges are huge.
    x2-xx-xx-xx-xx-xx
    x6-xx-xx-xx-xx-xx
    xA-xx-xx-xx-xx-xx
    xE-xx-xx-xx-xx-xx

Change-Id: I19eb709019337acfe41acd7091ec43dc08e05648
2021-03-23 12:31:06 -05:00

27 lines
793 B
YAML

# Note: IPPools are intended to be created and managed by ViNO itself.
# ViNO will perform IPAM based on end user input in the ViNO CR.
# This resource here is just a reference.
apiVersion: airship.airshipit.org/v1
kind: IPPool
metadata:
name: ippool-sample
spec:
subnet: 10.0.0.0/16
macPrefix: "02:00:00:00:00:00"
nextMAC: "02:00:00:00:00:03"
ranges:
- start: 10.0.0.1
stop: 10.0.0.9
- start: 10.0.1.1
stop: 10.0.1.9
allocatedIPs:
- allocatedTo: default-vino-test-cr-leviathan-worker-0
ip: 10.0.0.1
mac: "02:00:00:00:00:00"
- allocatedTo: default-vino-test-cr-leviathan-worker-1
ip: 10.0.0.2
mac: "02:00:00:00:00:01"
- allocatedTo: default-vino-test-cr-leviathan-worker-2
ip: 10.0.1.1
mac: "02:00:00:00:00:02"