-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add junos_chassis_inventory data-source
Fix #587
- Loading branch information
Showing
7 changed files
with
467 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<!-- markdownlint-disable-file MD013 MD041 --> | ||
FEATURES: | ||
|
||
* add **junos_chassis_inventory** data-source (Fix [#587](https://github.com/jeremmfr/terraform-provider-junos/issues/587)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
page_title: "Junos: junos_chassis_inventory" | ||
--- | ||
|
||
# junos_chassis_inventory | ||
|
||
Get chassis inventory (like the `show chassis hardware` command). | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
# Read chassis inventory and display serial-number | ||
data "junos_chassis_inventory" "demo" {} | ||
output "SN" { | ||
value = data.junos_chassis_inventory.demo.chassis.0.serial_number | ||
} | ||
``` | ||
|
||
## Attributes Reference | ||
|
||
The following attributes are exported: | ||
|
||
- **id** (String) | ||
An identifier for the data source with value `chassis_inventory`. | ||
- **chassis** (Block List) | ||
Chassis inventory for each routing engine. | ||
- Attributes defined by [component information schema](#component-information-schema) | ||
- **re_name** (String) | ||
Name of the routing engine (only if there are multiple routing engines). | ||
- **module** (Block List) | ||
For each module, component information. | ||
See [below for nested schema](#module-attributes). | ||
|
||
### module attributes | ||
|
||
- Attributes defined by [component information schema](#component-information-schema) | ||
- **sub_module** (Block List) | ||
For each sub-module, component information. | ||
- Attributes defined by [component information schema](#component-information-schema) | ||
- **sub_sub_module** (Block List) | ||
For each sub-sub-module, component information. | ||
Attributes defined by [component information schema](#component-information-schema) | ||
|
||
### component information schema | ||
|
||
- **clei_code** (String) | ||
Common Language Equipment Identifier code of the component. | ||
- **description** (String) | ||
Description of the component. | ||
- **model_number** (String) | ||
Model number of the component. | ||
- **name** (String) | ||
Name of the component. | ||
- **part_number** (String) | ||
Part number of the component. | ||
- **serial_number** (String) | ||
Serial number of the component. | ||
- **version** (String) | ||
Version of the component. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.