You can configure an ESRP domain to track port connectivity to a specified VLAN as criteria for ESRP failover. The number of VLAN active ports are tracked. If the switch is no longer connected to the specified VLAN, the switch automatically relinquishes master status and remains in slave mode. You can track a maximum of one VLAN.
configure esrp esrpDomain add track-vlan vlan_name
configure esrp esrpDomain delete track-vlan vlan_name