Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reserve IP addresses for supernodes #4

Merged
merged 5 commits into from
Jan 20, 2024
Merged

Reserve IP addresses for supernodes #4

merged 5 commits into from
Jan 20, 2024

Conversation

mraerino
Copy link
Member

@mraerino mraerino commented Jan 20, 2024

In order to create new supernodes on our own infrastructure, we first need to assign IP address prefixes and addresses for each supernode.

This comment has been minimized.

@mraerino mraerino requested a review from nomaster January 20, 2024 15:21

This comment has been minimized.

terraform/variables.tf Outdated Show resolved Hide resolved

This comment has been minimized.

Copy link

🏗️ Terraform Plan

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # netbox_available_prefix.domain_ipv6 will be created
  + resource "netbox_available_prefix" "domain_ipv6" {
      + description      = "Supernode IPv6 addresses dev"
      + id               = (known after apply)
      + parent_prefix_id = 97
      + prefix           = (known after apply)
      + prefix_length    = 56
      + status           = "reserved"
    }

  # netbox_prefix.loopback_ipv6 will be created
  + resource "netbox_prefix" "loopback_ipv6" {
      + description = "Supernode IPv6 loopback addresses dev"
      + id          = (known after apply)
      + prefix      = (known after apply)
      + status      = "reserved"
    }

  # module.supernode[0].netbox_available_ip_address.primary_ipv4 will be created
  + resource "netbox_available_ip_address" "primary_ipv4" {
      + description = "Primary Address dev_0"
      + id          = (known after apply)
      + ip_address  = (known after apply)
      + prefix_id   = (known after apply)
      + status      = "active"
    }

  # module.supernode[0].netbox_available_ip_address.primary_ipv6 will be created
  + resource "netbox_available_ip_address" "primary_ipv6" {
      + description = "Primary Address dev_0"
      + id          = (known after apply)
      + ip_address  = (known after apply)
      + prefix_id   = (known after apply)
      + status      = "active"
    }

  # module.supernode[0].netbox_available_prefix.primary_ipv4 will be created
  + resource "netbox_available_prefix" "primary_ipv4" {
      + description      = "Primary Address dev_0"
      + id               = (known after apply)
      + parent_prefix_id = 96
      + prefix           = (known after apply)
      + prefix_length    = 32
      + status           = "active"
    }

  # module.supernode[0].netbox_available_prefix.primary_ipv6 will be created
  + resource "netbox_available_prefix" "primary_ipv6" {
      + description      = "Primary Address dev_0"
      + id               = (known after apply)
      + parent_prefix_id = (known after apply)
      + prefix           = (known after apply)
      + prefix_length    = 128
      + status           = "active"
    }

  # module.supernode[1].netbox_available_ip_address.primary_ipv4 will be created
  + resource "netbox_available_ip_address" "primary_ipv4" {
      + description = "Primary Address dev_1"
      + id          = (known after apply)
      + ip_address  = (known after apply)
      + prefix_id   = (known after apply)
      + status      = "active"
    }

  # module.supernode[1].netbox_available_ip_address.primary_ipv6 will be created
  + resource "netbox_available_ip_address" "primary_ipv6" {
      + description = "Primary Address dev_1"
      + id          = (known after apply)
      + ip_address  = (known after apply)
      + prefix_id   = (known after apply)
      + status      = "active"
    }

  # module.supernode[1].netbox_available_prefix.primary_ipv4 will be created
  + resource "netbox_available_prefix" "primary_ipv4" {
      + description      = "Primary Address dev_1"
      + id               = (known after apply)
      + parent_prefix_id = 96
      + prefix           = (known after apply)
      + prefix_length    = 32
      + status           = "active"
    }

  # module.supernode[1].netbox_available_prefix.primary_ipv6 will be created
  + resource "netbox_available_prefix" "primary_ipv6" {
      + description      = "Primary Address dev_1"
      + id               = (known after apply)
      + parent_prefix_id = (known after apply)
      + prefix           = (known after apply)
      + prefix_length    = 128
      + status           = "active"
    }

Plan: 10 to add, 0 to change, 0 to destroy.

@nomaster nomaster merged commit 28997f1 into main Jan 20, 2024
2 checks passed
@nomaster nomaster deleted the feat/ip-reservation branch January 20, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants