Symptom
If a physical interface is a member of a port-channel, and if we have load-interval counters configured, applying default configs for the physical interface wont reset the load-interval counters.
For example, applied configs:
port-channel:
interface port-channel2
description tenant-1
switchport
switchport mode trunk
switchport trunk allowed vlan 10
storm-control broadcast level 1.00
storm-control action trap
load-interval counter 1 5
load-interval counter 2 30
load-interval counter 3 300
service-policy type qos input ingresspolicy
no lacp graceful-convergence
lacp vpc-convergence
vpc 2
Member port:
interface Ethernet1/1
switchport
switchport mode trunk
switchport trunk allowed vlan 10
storm-control broadcast level 1.00
storm-control action trap
load-interval counter 1 5
load-interval counter 2 30
load-interval counter 3 300
channel-group 2 mode active
In the above scenario, after we do "default interface ethernet 1/1" , below is what will be seen for the interface.
interface Ethernet1/1
load-interval counter 1 5
load-interval counter 2 30
load-interval counter 3 30
Conditions
If we need to apply default configurations on a physical interface, thats already a member port, and has load-interval configured.
Workaround
Doing a "load-interval counter 1 5" followed by "no load-interval counter 1 5" will clear all the load-interval counters