Skip to content

Commit

Permalink
add junos_multichassis_protection_peer resource
Browse files Browse the repository at this point in the history
Partial fix #576
  • Loading branch information
jeremmfr committed Dec 11, 2023
1 parent 7d7e4c4 commit 13c8f99
Show file tree
Hide file tree
Showing 10 changed files with 493 additions and 0 deletions.
1 change: 1 addition & 0 deletions .changes/issue-576.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
FEATURES:

* add `junos_multichassis` resource (Partial fix [#576](https://github.com/jeremmfr/terraform-provider-junos/issues/576))
* add `junos_multichassis_protection_peer` resource (Partial fix [#576](https://github.com/jeremmfr/terraform-provider-junos/issues/576))
1 change: 1 addition & 0 deletions docs/resources/multichassis.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ The following arguments are supported:

- **clean_on_destroy** (Optional, Boolean)
Clean entirely `multi-chassis` block when destroy this resource.
It includes potential `junos_multichassis_protection_peer` resources.
- **mc_lag_consistency_check** (Optional, Computed, Boolean)
Consistency Check.
Computed to set to `true` when `mc_lag_consistency_check_comparison_delay_time` is specified.
Expand Down
44 changes: 44 additions & 0 deletions docs/resources/multichassis_protection_peer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
page_title: "Junos: junos_multichassis_protection_peer"
---

# junos_multichassis_protection_peer

Provides a multi-chassis inter-chassis protection peer resource.

## Example Usage

```hcl
# Add a multi-chassis inter-chassis protection peer
resource "junos_multichassis_protection_peer" "peer1" {
ip_address = "192.0.2.1"
interface = "ge-0/0/3"
}
```

## Argument Reference

The following arguments are supported:

- **ip_address** (Required, String)
IP address for this peer.
- **interface** (Required, String)
Inter-Chassis protection link.
- **icl_down_delay** (Optional, Number)
Time in seconds between ICL down and MCAEs moving to standby (1..6000 seconds).

## Attributes Reference

The following attributes are exported:

- **id** (String)
An identifier for the resource with format `<ip_address>`.

## Import

Junos multi-chassis inter-chassis protection peer can be imported using an id made up of
`<ip_address>`, e.g.

```shell
$ terraform import junos_multichassis_protection_peer.peer1 192.0.2.1
```
1 change: 1 addition & 0 deletions internal/providerfwk/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ func (p *junosProvider) Resources(_ context.Context) []func() resource.Resource
newInterfacePhysicalResource,
newInterfaceSt0UnitResource,
newMultichassisResource,
newMultichassisProtectionPeerResource,
newOamGretunnelInterfaceResource,
newPolicyoptionsASPathResource,
newPolicyoptionsASPathGroupResource,
Expand Down
Loading

0 comments on commit 13c8f99

Please sign in to comment.