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

Feature request: add virtual-chassis #623

Closed
NikitaPuglachenko opened this issue Feb 19, 2024 · 2 comments · Fixed by #633
Closed

Feature request: add virtual-chassis #623

NikitaPuglachenko opened this issue Feb 19, 2024 · 2 comments · Fixed by #633
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@NikitaPuglachenko
Copy link

Description

It would be great to be able describe virtual-chassis config

New or Affected Resource(s)

  • junos_virtual_chassis

Example Junos Configuration

preprovisioned;
no-split-detection;
member 0 {
    role routing-engine;
    serial-number 123;
}
member 1 {
    role routing-engine;
    serial-number 456;
}

Potential Terraform Configuration

resource "junos_virtual_chassis" "demo" {
  graceful-restart      = disable | null
  mac-persistence-timer = disable | null
  no-auto-conversion    = true | null
  no-split-detection    = true | null
  preprovisioned        = true | null
  traceoptions {        # block
      file              = String
      flag              = all | auto-configuration | csn | dcp-dev-state | dcp-infra | error | graceful-restart | heartbeat | hello | krt | lsp | lsp-generation | me | normal | packets | parse | psn | route | spf | state | task
  }
  vcp-no-hold-time      = true | null
}

resource "junos_virtual_chassis_member" "demo_member_0" {
  id                  = int
  fabric-tree-root    = true | null
  location            = String
  mastership-priority = (0..255)
  no-management-vlan  = true | null
  role                = line-card | routing-engine
  serial-number       = String
}

References

https://www.juniper.net/documentation/us/en/software/junos/cli-reference/topics/ref/statement/virtual-chassis-virtual-chassis.html

@NikitaPuglachenko NikitaPuglachenko added the enhancement New feature or request label Feb 19, 2024
@jeremmfr
Copy link
Owner

Hi 👋

I will take care of adding this.

@jeremmfr jeremmfr added this to the v2.6.0 milestone Feb 29, 2024
@jeremmfr jeremmfr self-assigned this Feb 29, 2024
jeremmfr added a commit that referenced this issue Mar 4, 2024
@jeremmfr
Copy link
Owner

jeremmfr commented Mar 4, 2024

Due to a mutual dependency between the arguments serial-number, role in member and preprovisioned,
there will be only one resource that will group all the virtual-chassis configuration.

jeremmfr added a commit that referenced this issue Mar 5, 2024
jeremmfr added a commit that referenced this issue Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants