Dear expert,
i need to add port security in my access switches when the interface's description has AV/PV/UV/VV
description AVxx:06afasf
or
description PVxx:05asfasf or
description UVxx:06afasfas or
description VVxx:0afasfasgasgfasg
below is my template
Name: CheckPortSecurity SubMode: Yes isPrerequisite: Yes
Ordered : No Prerequisite-Commandset : none Parent: none
interface [#.*#]
+[#description .*[AaPpUuVv][Vv].*#]
-[#switchport port-security.*#]
Name: PushPortSecurity SubMode: No isPrerequisite: No
Ordered : No Prerequisite-Commandset : CheckPortSecurity Parent: CheckPortSecurity
+switchport port-security
+switchport port-security maximum 2
+switchport port-security violation restrict
+switchport port-security mac-address sticky
however when i use this template to check appliance agaist my switch, i find all of the interfaces been added the above config no matter it is matching or not.