CDP
Configure Cisco Discovery Protocol (CDP) settings on a device.
Diagram
Section titled “Diagram”Classes
Section titled “Classes”configuration (iosxr.devices)
Section titled “configuration (iosxr.devices)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| cdp | Class | [cdp] | No |
cdp (iosxr.devices.configuration)
Section titled “cdp (iosxr.devices.configuration)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| advertise_v1 | Boolean | true, false | No | |
| enable | Boolean | true, false | No | |
| holdtime | Integer | min: 10, max: 255 | No | |
| log_adjacency_changes | Boolean | true, false | No | |
| timer | Integer | min: 5, max: 254 | No |
Example YAML Code:
Section titled “Example YAML Code:”Example-1: Enable CDP with custom timer and holdtime settings.
iosxr: devices: - name: router-1 host: 10.10.10.1:57400 configuration: cdp: enable: true timer: 60 holdtime: 180Example-2: Enable CDP with adjacency change logging and v1 advertisement.
iosxr: devices: - name: router-2 host: 10.10.10.1:57400 configuration: cdp: enable: true log_adjacency_changes: true advertise_v1: trueExample-3: Configure CDP globally for all devices.
iosxr: global: configuration: cdp: enable: true timer: 30 holdtime: 120 log_adjacency_changes: true