extends:
  - _dell.yaml
  - _dell-os10-bgp4-v2.yaml
  - _std-host-resources-mib-feat-base.yaml
  - _std-ucd-mib.yaml
#  - if32-mib.yaml  # TODO: later (NDM-1933)

selector:
  - sysobjectid:
      include:
        - 1.3.6.1.4.1.674.11000.5000.100.2.*      # OS10 family
        - 1.3.6.1.4.1.674.11000.5000.100.2.1.1    # s6000on
        - 1.3.6.1.4.1.674.11000.5000.100.2.1.9    # s4128Ton
        - 1.3.6.1.4.1.674.11000.5000.100.2.1.20   # s5232Fon
        - 1.3.6.1.4.1.674.11000.5000.100.2.1.21   # s5248Fon

metadata:
  device:
    fields:
      type:
        value: "Switch"

# Tagging by column OID is not supported at the moment. Should be a table/columns metric + tags instead.
# metric_tags:
#   - OID: 1.3.6.1.4.1.674.11000.5000.100.4.1.1.3.1.6
#     symbol: dell.os10ChassisHwRev
#     tag: dell_os10_chassis_hw_rev
#   - OID: 1.3.6.1.4.1.674.11000.5000.100.4.1.1.3.1.7
#     symbol: dell.os10ChassisServiceTag
#     tag: dell_os10_chassis_service_tag
#   - OID: 1.3.6.1.4.1.674.11000.5000.100.4.1.1.3.1.8
#     symbol: dell.os10ChassisExpServiceCode
#     tag: dell_os10_chassis_exp_service_code

metrics:
  - MIB: DELLEMC-OS10-CHASSIS-MIB
    symbol:
      name: dell.os10ChassisTemp
      OID: 1.3.6.1.4.1.674.11000.5000.100.4.1.1.3.1.11
      chart_meta:
        family: 'Hardware/Chassis/Temperature/Value'
        description: "Temperature of the chassis"
        unit: "Cel"
  - MIB: DELLEMC-OS10-CHASSIS-MIB
    table:
      OID: 1.3.6.1.4.1.674.11000.5000.100.4.1.1.4
      name: dell.os10CardTable
    symbols:
      - OID: 1.3.6.1.4.1.674.11000.5000.100.4.1.1.4.1.5
        name: dell.os10CardTemp
        chart_meta:
          family: 'Hardware/Card/Temperature/Value'
          description: "Temperature of the card"
          unit: "Cel"
      - OID: 1.3.6.1.4.1.674.11000.5000.100.4.1.1.4.1.4
        name: dell.os10CardStatus
        chart_meta:
          family: 'Hardware/Card/Status'
          description: "Status of the card"
          unit: "{status}"
        mapping:
          1: ready
          2: card_mis_match
          3: card_problem
          4: diag_mode
          5: card_absent
          6: offline
    metric_tags:
      - tag: dell_os10_card_description
        symbol:
          OID: 1.3.6.1.4.1.674.11000.5000.100.4.1.1.4.1.3
          name: dell.os10CardDescription
      - tag: dell_os10_card_service_tag
        symbol:
          OID: 1.3.6.1.4.1.674.11000.5000.100.4.1.1.4.1.9
          name: dell.os10CardServiceTag

  - MIB: DELLEMC-OS10-CHASSIS-MIB
    table:
      OID: 1.3.6.1.4.1.674.11000.5000.100.4.1.2.1
      name: dell.os10PowerSupplyTable
    symbols:
      - OID: 1.3.6.1.4.1.674.11000.5000.100.4.1.2.1.1.4
        name: dell.os10PowerSupplyOperStatus
        chart_meta:
          family: 'Hardware/Power/Status/Operational'
          description: "Operational status of the power supply"
          unit: "{status}"
        mapping:
          1: up
          2: down
          3: testing
          4: unknown
          5: dormant
          6: not_present
          7: lower_layer_down
          8: failed
    metric_tags:
      - tag: dell_os10_power_supply_index
        symbol:
          OID: 1.3.6.1.4.1.674.11000.5000.100.4.1.2.1.1.1
          name: dell.os10PowerSupplyIndex

  - MIB: DELLEMC-OS10-CHASSIS-MIB
    table:
      OID: 1.3.6.1.4.1.674.11000.5000.100.4.1.2.2
      name: dell.os10FanTrayTable
    symbols:
      - OID: 1.3.6.1.4.1.674.11000.5000.100.4.1.2.2.1.4
        name: dell.os10FanTrayOperStatus
        chart_meta:
          family: 'Hardware/FanTray/Status/Operational'
          description: "Operational status of the fan tray"
          unit: "{status}"
        mapping:
          1: up
          2: down
          3: testing
          4: unknown
          5: dormant
          6: not_present
          7: lower_layer_down
          8: failed
    metric_tags:
      - tag: dell_os10_fan_tray_index
        symbol:
          OID: 1.3.6.1.4.1.674.11000.5000.100.4.1.2.2.1.1
          name: dell.os10FanTrayIndex

  - MIB: DELLEMC-OS10-CHASSIS-MIB
    table:
      OID: 1.3.6.1.4.1.674.11000.5000.100.4.1.2.3
      name: dell.os10FanTable
    symbols:
      - OID: 1.3.6.1.4.1.674.11000.5000.100.4.1.2.3.1.7
        name: dell.os10FanOperStatus
        chart_meta:
          family: 'Hardware/Fan/Status/Operational'
          description: "Operational status of the fan"
          unit: "{status}"
        mapping:
          1: up
          2: down
          3: testing
          4: unknown
          5: dormant
          6: not_present
          7: lower_layer_down
          8: failed
    metric_tags:
      - tag: dell_os10_fan_index
        symbol:
          OID: 1.3.6.1.4.1.674.11000.5000.100.4.1.2.3.1.1
          name: dell.os10FanIndex
