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

System attributes in device allocation resource #559

Merged
merged 9 commits into from
Feb 16, 2024

Conversation

chrismarget-j
Copy link
Collaborator

@chrismarget-j chrismarget-j commented Feb 16, 2024

This PR introduces support for controlling system attributes of switch systems only via a new configuration block in the apstra_datacenter_device_allocation resource:

resource "apstra_datacenter_device_allocation" "test" {
  blueprint_id = local.blueprint_id
  node_name                = "Spine1"
  initial_interface_map_id = "Juniper_vQFX__AOS-7x10-Spine"
//  deploy_mode            = "drain"      <------ this attribute is deprecated
//                                             (moved to the system_attributes block)

  // the system_attributes block is new
  system_attributes = {
    name          = "Desired GUI Label"
    hostname      = "desired.host.name"
    asn           = 1234
    deploy_mode   = "drain"
    loopback_ipv4 = "192.0.2.2/32"
    loopback_ipv6 = "2001:db8::22/128"
    tags          = ["2", "22", "222"]
  }
}

Closes #502
Closes #503
Closes #504

@chrismarget-j chrismarget-j force-pushed the system-attributes-in-device-allocation branch from d63f81a to f941c5e Compare February 16, 2024 01:20
@chrismarget-j chrismarget-j changed the title WIP: System attributes in device allocation resource System attributes in device allocation resource Feb 16, 2024
Copy link
Collaborator

@bwJuniper bwJuniper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing :)

@chrismarget-j chrismarget-j merged commit ac0e35e into main Feb 16, 2024
1 check passed
@chrismarget-j chrismarget-j deleted the system-attributes-in-device-allocation branch February 16, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants