Skip to content

Commit

Permalink
SP-11 Port channel YAML template is enhanced with latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
swarudka committed Sep 7, 2023
1 parent 2ec40c8 commit b6acc21
Show file tree
Hide file tree
Showing 9 changed files with 92 additions and 50 deletions.
2 changes: 2 additions & 0 deletions docs/data-sources/interface_port_channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ data "iosxe_interface_port_channel" "example" {
- `ip_arp_inspection_limit_rate` (Number) Rate Limit
- `ip_arp_inspection_trust` (Boolean) Configure Trust state
- `ip_dhcp_relay_source_interface` (String) Set source interface for relayed messages
- `ip_dhcp_snooping_trust` (Boolean) DHCP Snooping trust config
- `ip_proxy_arp` (Boolean) Enable proxy ARP
- `ip_redirects` (Boolean) Enable sending ICMP Redirect messages
- `ip_unreachables` (Boolean) Enable sending ICMP Unreachable messages
Expand All @@ -75,6 +76,7 @@ data "iosxe_interface_port_channel" "example" {
- `ipv6_nd_ra_suppress_all` (Boolean) Suppress all IPv6 RA
- `shutdown` (Boolean) Shutdown the selected interface
- `spanning_tree_guard` (String) Change an interface's spanning tree guard mode
- `spanning_tree_link_type` (String) Specify a link type for spanning tree tree protocol use
- `switchport` (Boolean)
- `trust_device` (String) trusted device class
- `vrf_forwarding` (String) Configure forwarding table
Expand Down
7 changes: 5 additions & 2 deletions docs/resources/interface_port_channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ resource "iosxe_interface_port_channel" "example" {
ipv6_address_dhcp = true
ipv6_link_local_addresses = [
{
address = "fe80::9656:d028:8652:66b9"
address = "fe80::64"
link_local = true
}
]
ipv6_addresses = [
{
prefix = "2004:DB8::/32"
prefix = "2224:DB8::/32"
eui_64 = true
}
]
Expand Down Expand Up @@ -96,6 +96,7 @@ resource "iosxe_interface_port_channel" "example" {
- Range: `0`-`4294967295`
- `ip_arp_inspection_trust` (Boolean) Configure Trust state
- `ip_dhcp_relay_source_interface` (String) Set source interface for relayed messages
- `ip_dhcp_snooping_trust` (Boolean) DHCP Snooping trust config
- `ip_proxy_arp` (Boolean) Enable proxy ARP
- `ip_redirects` (Boolean) Enable sending ICMP Redirect messages
- `ip_unreachables` (Boolean) Enable sending ICMP Unreachable messages
Expand All @@ -112,6 +113,8 @@ resource "iosxe_interface_port_channel" "example" {
- `shutdown` (Boolean) Shutdown the selected interface
- `spanning_tree_guard` (String) Change an interface's spanning tree guard mode
- Choices: `loop`, `none`, `root`
- `spanning_tree_link_type` (String) Specify a link type for spanning tree tree protocol use
- Choices: `point-to-point`, `shared`
- `switchport` (Boolean)
- `trust_device` (String) trusted device class
- Choices: `cisco-phone`, `cts`, `ip-camera`, `media-player`
Expand Down
4 changes: 2 additions & 2 deletions examples/resources/iosxe_interface_port_channel/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ resource "iosxe_interface_port_channel" "example" {
ipv6_address_dhcp = true
ipv6_link_local_addresses = [
{
address = "fe80::9656:d028:8652:66b9"
address = "fe80::64"
link_local = true
}
]
ipv6_addresses = [
{
prefix = "2004:DB8::/32"
prefix = "2224:DB8::/32"
eui_64 = true
}
]
Expand Down
15 changes: 13 additions & 2 deletions gen/definitions/interface_port_channel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ attributes:
- yang_name: switchport-conf/switchport
tf_name: switchport
example: false
exclude_test: true
test_tags: [C9000V]
- yang_name: ip/access-group/in/apply-type/apply-intf/acl/acl-name
xpath: ip/access-group/in/acl/acl-name
Expand Down Expand Up @@ -164,7 +165,7 @@ attributes:
attributes:
- yang_name: address
id: true
example: fe80::9656:d028:8652:66b9
example: fe80::64
- yang_name: link-local
example: true
- yang_name: ipv6/address/prefix-list
Expand All @@ -173,16 +174,26 @@ attributes:
attributes:
- yang_name: prefix
id: true
example: 2004:DB8::/32
example: 2224:DB8::/32
- yang_name: eui-64
example: true
- yang_name: arp/timeout
example: 2147
- yang_name: ip/arp/inspection/trust
example: true
exclude_test: true
test_tags: [C9000V]
- yang_name: ip/arp/inspection/limit/rate
example: 1000
exclude_test: true
test_tags: [C9000V]
- yang_name: Cisco-IOS-XE-spanning-tree:spanning-tree/link-type
example: point-to-point
exclude_test: true
test_tags: [C9000V]
- yang_name: ip/dhcp/Cisco-IOS-XE-dhcp:snooping/trust
example: true
exclude_test: true
test_tags: [C9000V]

test_prerequisites:
Expand Down
8 changes: 8 additions & 0 deletions internal/provider/data_source_iosxe_interface_port_channel.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 4 additions & 22 deletions internal/provider/data_source_iosxe_interface_port_channel_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 43 additions & 0 deletions internal/provider/model_iosxe_interface_port_channel.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions internal/provider/resource_iosxe_interface_port_channel.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 4 additions & 22 deletions internal/provider/resource_iosxe_interface_port_channel_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b6acc21

Please sign in to comment.