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: serial secondary cluster node #587

Closed
arjenvri opened this issue Dec 6, 2023 · 3 comments · Fixed by #608
Closed

Feature request: serial secondary cluster node #587

arjenvri opened this issue Dec 6, 2023 · 3 comments · Fixed by #608
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@arjenvri
Copy link
Contributor

arjenvri commented Dec 6, 2023

Description

Would it be possible to expand the current system information datasource to provide the serial number of the secondary node in a chassis cluster?

New or Affected Resource(s)

  • junos_system_information
@arjenvri arjenvri added the enhancement New feature or request label Dec 6, 2023
@arjenvri arjenvri changed the title Feature request: system information cluster node Feature request: serial secondary cluster node Dec 6, 2023
@jeremmfr
Copy link
Owner

Hi 👋

This information is not available in system-information response.

Have you try to configure a secondary provider with management IP of secondary node to read this information ?

provider "junos" {
  ip = "<primary_ip>"
}
data "junos_system_information" "primary" {}
output "primary_serial_number" {
  value = data.junos_system_information.primary.serial_number
}

provider "junos" {
  alias = "secondary"
  
  ip    = "<secondary_ip>"
}
data "junos_system_information" "secondary" {
  provider = junos.secondary
}
output "secondary_serial_number" {
  value = data.junos_system_information.secondary.serial_number
}

@jeremmfr jeremmfr self-assigned this Dec 11, 2023
@arjenvri
Copy link
Contributor Author

thank you for that suggestion and your time! In our case we connect only using the shared cluster ip for administrative reasons.
Sorry for confusing my request, but i hope you are willing to consider supporting a new data source for show chassis hardware that contains the chassis serial of all nodes.

> show chassis hardware
node0:
--------------------------------------------------------------------------
Hardware inventory:
Item             Version  Part number  Serial number     Description
Chassis                                JNXXXXXXX     SRXx00
...
node1:
--------------------------------------------------------------------------
Hardware inventory:
Item             Version  Part number  Serial number     Description
Chassis                                JNXXXXXXX     SRXx00
...

@jeremmfr
Copy link
Owner

jeremmfr commented Jan 2, 2024

Hi 👋

After some tests, a RPC request <get-chassis-inventory> equivalent to the command show chassis hardware can provide a data source.

I'll take care of adding that.

@jeremmfr jeremmfr added this to the v2.5.0 milestone Jan 2, 2024
jeremmfr added a commit that referenced this issue Jan 8, 2024
jeremmfr added a commit that referenced this issue Jan 8, 2024
jeremmfr added a commit that referenced this issue Jan 8, 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