Symptom
After applying a source template which contains "spanning-tree portfast ", "spanning-tree portfast" will be seen under the interface configuration in "show run"
It is expected that this would only appear in the show derived-config, and be removed when the source template is removed.
"spanning-tree portfast" remains configured even if the template is removed or its initial application ultimately failed due to some other reason.
Conditions
Configure any template with the line "spanning-tree portfast"
Apply the template to an interface via "source template (template name)"
Removal of the template does not remove the line "spanning-tree portfast" despite the user never explicitly configuring that under the interface.
Workaround
Manually remove "spanning-tree portfast" from individual interfaces when removing templates with the same configuration.
Further Problem Description
There is no functional impact observed at this time, beyond the unexpected application of "spanning-tree portfast" to the native interface configuration.