Skip to content

Track

Object tracking monitors the state of interfaces, IP/IPv6 routes, IP SLA operations, or combinations of other track objects on NX-OS, and publishes an up/down state that first-hop redundancy protocols such as HSRP can react to, for example by decrementing the group priority when an uplink fails. Each track object is identified by a numeric ID and tracks exactly one of: interface line-protocol or IPv4/IPv6 routing state, IPv4 or IPv6 route reachability (optionally for HMM-owned routes and within a VRF), IP SLA reachability or state, or a track list combining multiple objects with boolean (and/or) or threshold (percentage/weight) logic. Optional up and down delays, in seconds or milliseconds, dampen state changes to avoid flapping.

Diagram
NameTypeConstraintMandatoryDefault Value
devicesListdevicesNo
device_groupsListdevice_groupsNo
globalClassglobalNo
templatesListtemplatesNo

NameTypeConstraintMandatoryDefault Value
configurationClassconfigurationNo

NameTypeConstraintMandatoryDefault Value
configurationClassconfigurationNo

NameTypeConstraintMandatoryDefault Value
configurationClassconfigurationNo

NameTypeConstraintMandatoryDefault Value
configurationClassconfigurationNo

NameTypeConstraintMandatoryDefault Value
tracksListtracksNo

NameTypeConstraintMandatoryDefault Value
idIntegermin: 1, max: 512Yes
interface_typeChoiceethernet, loopback, mgmt, port-channel, vlan, vniNo
interface_idAnyString or Integer[min: 0]No
interface_line_protocolBooleantrue, falseNo
interface_ip_routingBooleantrue, falseNo
interface_ipv6_routingBooleantrue, falseNo
ip_routeIPNo
ip_route_reachability_hmmBooleantrue, falseNo
ipv6_routeIPNo
ipv6_route_reachability_hmmBooleantrue, falseNo
ip_slaIntegermin: 1, max: 2147483647No
ip_sla_reachabilityBooleantrue, falseNo
ip_sla_stateBooleantrue, falseNo
list_booleanChoiceand, orNo
list_thresholdChoicepercentage, weightNo
vrfStringNo
delay_upIntegermin: 0, max: 180No
delay_downIntegermin: 0, max: 180No
delay_up_millisecondsIntegermin: 100, max: 60000No
delay_down_millisecondsIntegermin: 100, max: 60000No
threshold_percentage_upIntegermin: 0, max: 100No
threshold_percentage_downIntegermin: 0, max: 100No
threshold_weight_upIntegermin: 0, max: 255No
threshold_weight_downIntegermin: 0, max: 255No
objectsListobjectsNo

objects (nxos.devices.configuration.tracks)

Section titled “objects (nxos.devices.configuration.tracks)”
NameTypeConstraintMandatoryDefault Value
idIntegermin: 1, max: 512Yes
notBooleantrue, falseNo
weightIntegermin: 1, max: 255No

Example 1: Track uplink interface line-protocol with delayed state changes

nxos:
devices:
- name: LEAF1
configuration:
tracks:
- id: 10
interface_type: ethernet
interface_id: 1/49
interface_line_protocol: true
delay_up: 20
delay_down: 10

Example 2: Track IPv4 and IPv6 route reachability within a VRF

nxos:
devices:
- name: BORDER1
configuration:
tracks:
- id: 20
ip_route: 0.0.0.0/0
vrf: TENANT-A
- id: 21
ipv6_route: ::/0
vrf: TENANT-A
- id: 22
ip_route: 10.1.1.1/32
ip_route_reachability_hmm: true
vrf: TENANT-A

Example 3: Track IP SLA reachability with millisecond delays

nxos:
devices:
- name: LEAF1
configuration:
tracks:
- id: 30
ip_sla: 1
ip_sla_reachability: true
delay_up_milliseconds: 500
delay_down_milliseconds: 200

Example 4: Boolean and weighted threshold track lists combining multiple uplinks

nxos:
devices:
- name: LEAF1
configuration:
tracks:
- id: 11
interface_type: ethernet
interface_id: 1/49
interface_line_protocol: true
- id: 12
interface_type: ethernet
interface_id: 1/50
interface_ip_routing: true
- id: 100
list_boolean: or
objects:
- id: 11
- id: 12
- id: 101
list_threshold: weight
threshold_weight_up: 20
threshold_weight_down: 10
objects:
- id: 11
weight: 10
- id: 12
weight: 10