Skip to content

Commit e98995d

Browse files
committed
Add ssh acl attributes
1 parent 9b23410 commit e98995d

File tree

12 files changed

+89
-3
lines changed

12 files changed

+89
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.2.5 (unreleased)
2+
3+
- Add `ipv4_access_list` and `ipv6_access_list` attributes to `iosxr_ssh` resource and data source
4+
15
## 0.2.4
26

37
- Add `record_ipv4`, `record_ipv6`, `record_mpls` and `sflow_options` attributes to `iosxr_flow_monitor_map` resource and data source

docs/data-sources/ssh.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,6 @@ data "iosxr_ssh" "example" {
3939

4040
Read-Only:
4141

42+
- `ipv4_access_list` (String) Configure IPv4 access-list
43+
- `ipv6_access_list` (String) Configure IPv6 access-list
4244
- `vrf_name` (String) Cisco sshd VRF name

docs/guides/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ description: |-
77

88
# Changelog
99

10+
## 0.2.5 (unreleased)
11+
12+
- Add `ipv4_access_list` and `ipv6_access_list` attributes to `iosxr_ssh` resource and data source
13+
1014
## 0.2.4
1115

1216
- Add `record_ipv4`, `record_ipv6`, `record_mpls` and `sflow_options` attributes to `iosxr_flow_monitor_map` resource and data source

docs/resources/ssh.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ resource "iosxr_ssh" "example" {
2121
server_v2 = true
2222
server_vrfs = [
2323
{
24-
vrf_name = "VRF1"
24+
vrf_name = "VRF1"
25+
ipv4_access_list = "ACL1"
26+
ipv6_access_list = "ACL2"
2527
}
2628
]
2729
}
@@ -56,6 +58,11 @@ Required:
5658

5759
- `vrf_name` (String) Cisco sshd VRF name
5860

61+
Optional:
62+
63+
- `ipv4_access_list` (String) Configure IPv4 access-list
64+
- `ipv6_access_list` (String) Configure IPv6 access-list
65+
5966
## Import
6067

6168
Import is supported using the following syntax:

examples/resources/iosxr_ssh/resource.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ resource "iosxr_ssh" "example" {
66
server_v2 = true
77
server_vrfs = [
88
{
9-
vrf_name = "VRF1"
9+
vrf_name = "VRF1"
10+
ipv4_access_list = "ACL1"
11+
ipv6_access_list = "ACL2"
1012
}
1113
]
1214
}

gen/definitions/ssh.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ attributes:
2020
- yang_name: vrf-name
2121
id: true
2222
example: VRF1
23+
- yang_name: ipv4/access-list
24+
example: ACL1
25+
- yang_name: ipv6/access-list
26+
example: ACL2

internal/provider/data_source_iosxr_ssh.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/data_source_iosxr_ssh_test.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/model_iosxr_ssh.go

Lines changed: 25 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/resource_iosxr_ssh.go

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)