# CISCO-CDP-MIB topology profile.
# MIB: CISCO-CDP-MIB

topology:
  - kind: cdp_cache
    MIB: CISCO-CDP-MIB
    table:
      OID: 1.3.6.1.4.1.9.9.23.1.2.1
      name: cdpCacheTable
    symbols:
      # Use a required numeric column to ensure rows are emitted by ddsnmp.
      - OID: 1.3.6.1.4.1.9.9.23.1.2.1.1.3
        name: cdp_cache
    metric_tags:
      - tag: cdp_if_index
        index: 1
      - tag: cdp_device_index
        index: 2
      - tag: cdp_device_id
        symbol:
          OID: 1.3.6.1.4.1.9.9.23.1.2.1.1.6
          name: cdpCacheDeviceId
      - tag: cdp_address_type
        symbol:
          OID: 1.3.6.1.4.1.9.9.23.1.2.1.1.3
          name: cdpCacheAddressType
      - tag: cdp_device_port
        symbol:
          OID: 1.3.6.1.4.1.9.9.23.1.2.1.1.7
          name: cdpCacheDevicePort
      - tag: cdp_version
        symbol:
          OID: 1.3.6.1.4.1.9.9.23.1.2.1.1.5
          name: cdpCacheVersion
      - tag: cdp_platform
        symbol:
          OID: 1.3.6.1.4.1.9.9.23.1.2.1.1.8
          name: cdpCachePlatform
      - tag: cdp_capabilities
        symbol:
          OID: 1.3.6.1.4.1.9.9.23.1.2.1.1.9
          name: cdpCacheCapabilities
      - tag: cdp_address
        symbol:
          OID: 1.3.6.1.4.1.9.9.23.1.2.1.1.4
          name: cdpCacheAddress
          format: hex
      - tag: cdp_vtp_mgmt_domain
        symbol:
          OID: 1.3.6.1.4.1.9.9.23.1.2.1.1.10
          name: cdpCacheVTPMgmtDomain
      - tag: cdp_native_vlan
        symbol:
          OID: 1.3.6.1.4.1.9.9.23.1.2.1.1.11
          name: cdpCacheNativeVLAN
      - tag: cdp_duplex
        symbol:
          OID: 1.3.6.1.4.1.9.9.23.1.2.1.1.12
          name: cdpCacheDuplex
      - tag: cdp_power_consumption
        symbol:
          OID: 1.3.6.1.4.1.9.9.23.1.2.1.1.15
          name: cdpCachePowerConsumption
      - tag: cdp_mtu
        symbol:
          OID: 1.3.6.1.4.1.9.9.23.1.2.1.1.16
          name: cdpCacheMTU
      - tag: cdp_sys_name
        symbol:
          OID: 1.3.6.1.4.1.9.9.23.1.2.1.1.17
          name: cdpCacheSysName
      - tag: cdp_sys_object_id
        symbol:
          OID: 1.3.6.1.4.1.9.9.23.1.2.1.1.18
          name: cdpCacheSysObjectID
      - tag: cdp_primary_mgmt_addr_type
        symbol:
          OID: 1.3.6.1.4.1.9.9.23.1.2.1.1.19
          name: cdpCachePrimaryMgmtAddrType
      - tag: cdp_primary_mgmt_addr
        symbol:
          OID: 1.3.6.1.4.1.9.9.23.1.2.1.1.20
          name: cdpCachePrimaryMgmtAddr
          format: hex
      - tag: cdp_secondary_mgmt_addr_type
        symbol:
          OID: 1.3.6.1.4.1.9.9.23.1.2.1.1.21
          name: cdpCacheSecondaryMgmtAddrType
      - tag: cdp_secondary_mgmt_addr
        symbol:
          OID: 1.3.6.1.4.1.9.9.23.1.2.1.1.22
          name: cdpCacheSecondaryMgmtAddr
          format: hex
      - tag: cdp_physical_location
        symbol:
          OID: 1.3.6.1.4.1.9.9.23.1.2.1.1.23
          name: cdpCachePhysLocation
      - tag: cdp_last_change
        symbol:
          OID: 1.3.6.1.4.1.9.9.23.1.2.1.1.24
          name: cdpCacheLastChange
      - tag: cdp_if_name
        table: ifXTable
        symbol:
          OID: 1.3.6.1.2.1.31.1.1.1.1
          name: ifName
        index_transform:
          - start: 0
            end: 0
