CiscoDevNet/terraform-provider-iosxe

spanning-tree portfast edge trunk on resource iosxe_template

Closed this issue · 3 comments

Hi,
When I'm creating a iosxe_template and set mode trunk + portfast edge, is expected that the result mode will be "spanning-tree portfast edge trunk", but is only configured as "spanning-tree portfast edge"

-/+ resource "iosxe_template" "port-profile" {
      + load_interval                           = 30
      + spanning_tree_bpduguard_enable          = true
      + spanning_tree_portfast                  = true
      **+ spanning_tree_portfast_edge             = true**
      + spanning_tree_portfast_network          = false
      + storm_control_broadcast_level_threshold = 5
      + storm_control_multicast_level_threshold = 3
      + switchport_mode_access                  = false
      **+ switchport_mode_trunk                   = true**
      + switchport_nonegotiate                  = true
      + switchport_trunk_native_vlan_vlan_id    = 999
      + template_name                           = "TRUNK-SERVERS"
    }

The result on switch configuration is:

template TRUNK-SERVERS
 storm-control broadcast level 5.00
 storm-control multicast level 3.00
 **spanning-tree portfast edge**
 spanning-tree bpduguard enable
 switchport trunk native vlan 999
 switchport mode trunk
 switchport nonegotiate
 load-interval 30

Unfortunately this is not supported with XE YANG models and can therefore not be added. You could open a TAC case and request support to be added to the XE YANG models.

Thank you for the explanation @danischm