Skip to content

destroy does not shutdown port #219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
igor-saiko opened this issue Mar 3, 2025 · 0 comments
Open

destroy does not shutdown port #219

igor-saiko opened this issue Mar 3, 2025 · 0 comments

Comments

@igor-saiko
Copy link

igor-saiko commented Mar 3, 2025

HI Team
is it expected that when I destroy configuration for access port it does shutdown port
I am doing this on cx9300

this is part of configuraiton to be destroyed

switchport configuration

resource "iosxe_interface_switchport" "te1_0_47_SWX3RB" {
  provider = iosxe.SWX3RB
  type = "TenGigabitEthernet"
  name = "1/0/47"
  mode_access = true
  access_vlan = iosxe_vlan.vlan_993_SWX3RB.vlan_id
}

interface configuration

resource "iosxe_interface_ethernet" "te1_0_47_SWX3RB" {
  provider = iosxe.SWX3RB
  type = "TenGigabitEthernet"
  name = "1/0/47"
  description = "TER_TEST_CONFIG"
  shutdown = false
  source_template = [ {
    template_name = iosxe_template.Access_Standard_Port_Config_SWX3RB.template_name
  } ]
}

create interface template

resource "iosxe_template" "Access_Standard_Port_Config_SWX3RB" {
provider = iosxe.SWX3RB
template_name = "TER_ACC_STANDARD_PORT_CONFIG"
switchport_nonegotiate = true
switchport_mode_access = true
switchport_port_security = true
switchport_port_security_violation_restrict = true
switchport_port_security_aging_time = 5
switchport_port_security_aging_type_inactivity = true

load_interval = 30

storm_control_broadcast_level_pps_threshold = "1k"
storm_control_multicast_level_pps_threshold = "50k"
storm_control_action_trap = true

spanning_tree_portfast = true
spanning_tree_bpduguard_enable = true

ip_dhcp_snooping_limit_rate = 32
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant