CiscoDevNet / terraform-provider-iosxe

Terraform Cisco IOS-XE Provider
https://registry.terraform.io/providers/CiscoDevNet/iosxe
Mozilla Public License 2.0
50 stars 22 forks source link

resources iosxe_interface_ethernet should support type 'Port-channel'/'Vlan' #137

Open sthoneder opened 3 months ago

sthoneder commented 3 months ago

Configuring a layer 2 port-channel also requires ethernet attributes to be set. Currently Port-channel is not a valid type element.

Sample IOS-XE CLI config

interface Port-channel1
 description #uplink
 switchport mode trunk
 ip arp inspection trust                                    <<<< ethernet attribute  
 spanning-tree link-type point-to-point         <<<< ethernet attribute  
 spanning-tree guard loop                               <<<< ethernet attribute  
 ip dhcp snooping trust                                    <<<< ethernet attribute 

Hence iosxe_interface_ethernet should also allow type Port-channel/Vlan as choice element for attribute type.

Sampel Yang Model Path /native/interface/Port-channel/ip/arp/inspection/trust