Symptom
Customer’s stack switch has an unexpected reload behavior (only standby switch) when use macros to configure a switchport range (for example: voip $p gi1/0/1-31 $v 55) where the IP device tracking policy is present.
Conditions
Macro:
macro name voip
default interface range $p
interface range $p
description VOIP
switchport access vlan $v
switchport mode access
switchport voice vlan 502
switchport port-security
switchport port-security maximum 3
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
spanning-tree portfast
spanning-tree bpduguard enable
trust device cisco-phone
ip nbar protocol-discovery
device-tracking attach-policy IPDT_POLICY <<<-------
cdp enable
no shut
do wr
@
IP Device-Tracking:
device-tracking policy IPDT_POLICY
no protocol udp
tracking enable
Run:
voip $p gi1/0/1-31 $v 55
Workaround
If the ip device-tracking policy is removed from macros the issue does not happen
Further Problem Description
Customer’s stack switch has an unexpected reload behavior (only standby switch) when use macros to configure a switchport range (for example: voip $p gi1/0/1-31 $v 55) where the IP device tracking policy is present.