extends:
  - alcatel-lucent.yaml
  - _alcatel-bgp.yaml

selector:
  - sysobjectid:
      include:
        - 1.3.6.1.4.1.6486.801.1.1.2.1.*

metadata:
  device:
    fields:
      vendor:
        value: Alcatel-Lucent
      type:
        value: Switch/BOP
metrics:
  - MIB: ALCATEL-ENT1-HEALTH-MIB
    table:
      name: healthModuleTable
      OID: 1.3.6.1.4.1.6486.801.1.2.1.16.1.1.1.1
    symbols:
      - name: cpu.usage # healthModuleCpuLatest
        OID: 1.3.6.1.4.1.6486.801.1.2.1.16.1.1.1.1.1.11
        chart_meta:
          family: 'System/CPU/Usage'
          description: The current CPU utilization
          unit: "%"
    metric_tags:
      - tag: cpu_index
        index: 1
      - tag: health_module_chassis_id
        symbol:
          name: healthModuleChassisId
          OID: 1.3.6.1.4.1.6486.801.1.2.1.16.1.1.1.1.1.14

  - MIB: ALCATEL-ENT1-HEALTH-MIB
    table:
      name: healthModuleTable
      OID: 1.3.6.1.4.1.6486.801.1.2.1.16.1.1.1.1
    symbols:
      - name: healthModuleMemoryLatest
        OID: 1.3.6.1.4.1.6486.801.1.2.1.16.1.1.1.1.1.8
        chart_meta:
          family: 'System/Memory/Usage'
          description: Memory usage percentage
          unit: "%"
    metric_tags:
      - tag: mem_index
        index: 1
      - tag: health_module_chassis_id
        symbol:
          name: healthModuleChassisId
          OID: 1.3.6.1.4.1.6486.801.1.2.1.16.1.1.1.1.1.14

  - MIB: ALCATEL-ENT1-CHASSIS-MIB
    table:
      name: chasEntPhysicalTable
      OID: 1.3.6.1.4.1.6486.801.1.1.1.1.1.1
    symbols:
      - OID: 1.3.6.1.4.1.6486.801.1.1.1.1.1.1.1.1
        name: chasEntPhysAdminStatus
        chart_meta:
          family: 'Hardware/Entity/Admin/Status'
          description: The administrative status of the physical entity
          unit: "{status}"
        mapping:
          1: unknown
          2: power_off
          3: power_on
          4: reset
          5: takeover
          6: reset_all
          7: standby
          8: reset_with_fabric
          9: takeover_with_fabrc
          10: vc_takeover
          11: reset_vc_all
      - OID: 1.3.6.1.4.1.6486.801.1.1.1.1.1.1.1.2
        name: chasEntPhysOperStatus
        chart_meta:
          family: 'Hardware/Entity/Operational/Status'
          description: The operational status of the physical entity
          unit: "{status}"
        mapping:
          1: up
          2: down
          3: testing
          4: unknown
          5: secondary
          6: not_present
          7: unpowered
          8: master
          9: idle
          10: pwrsave
      - OID: 1.3.6.1.4.1.6486.801.1.1.1.1.1.1.1.6
        name: chasEntPhysLedStatusOk1
        chart_meta:
          family: 'Hardware/LED/OK1/Status'
          description: Physical entity ok1 LED status
          unit: "{status}"
        mapping:
          0: not_applicable
          1: off
          2: green_on
          3: green_blink
          4: amber_on
          5: amber_blink
      - OID: 1.3.6.1.4.1.6486.801.1.1.1.1.1.1.1.7
        name: chasEntPhysLedStatusOk2
        chart_meta:
          family: 'Hardware/LED/OK2/Status'
          description: Physical entity ok2 LED status
          unit: "{status}"
        mapping:
          0: not_applicable
          1: off
          2: green_on
          3: green_blink
          4: amber_on
          5: amber_blink
      - OID: 1.3.6.1.4.1.6486.801.1.1.1.1.1.1.1.8
        name: chasEntPhysLedStatusPrimaryCMM
        chart_meta:
          family: 'Hardware/LED/CMMPrimary/Status'
          description: Physical entity primary CMM LED status
          unit: "{status}"
        mapping:
          0: not_applicable
          1: off
          2: green_on
          3: green_blink
          4: amber_on
          5: amber_blink
      - OID: 1.3.6.1.4.1.6486.801.1.1.1.1.1.1.1.9
        name: chasEntPhysLedStatusSecondaryCMM
        chart_meta:
          family: 'Hardware/LED/CMMSecondary/Status'
          description: Physical entity secondary CMM LED status
          unit: "{status}"
        mapping:
          0: not_applicable
          1: off
          2: green_on
          3: green_blink
          4: amber_on
          5: amber_blink
      - OID: 1.3.6.1.4.1.6486.801.1.1.1.1.1.1.1.10
        name: chasEntPhysLedStatusTemperature
        chart_meta:
          family: 'Hardware/LED/Temperature/Status'
          description: Physical entity temperature LED status
          unit: "{status}"
        mapping:
          0: not_applicable
          1: off
          2: green_on
          3: green_blink
          4: amber_on
          5: amber_blink
      - OID: 1.3.6.1.4.1.6486.801.1.1.1.1.1.1.1.11
        name: chasEntPhysLedStatusFan
        chart_meta:
          family: 'Hardware/LED/Fan/Status'
          description: Physical entity fan LED status
          unit: "{status}"
        mapping:
          0: not_applicable
          1: off
          2: green_on
          3: green_blink
          4: amber_on
          5: amber_blink
      - OID: 1.3.6.1.4.1.6486.801.1.1.1.1.1.1.1.12
        name: chasEntPhysLedStatusBackupPS
        chart_meta:
          family: 'Hardware/LED/PowerSupply/Backup/Status'
          description: Physical entity backup power supply LED status
          unit: "{status}"
        mapping:
          0: not_applicable
          1: off
          2: green_on
          3: green_blink
          4: amber_on
          5: amber_blink
      - OID: 1.3.6.1.4.1.6486.801.1.1.1.1.1.1.1.13
        name: chasEntPhysLedStatusInternalPS
        chart_meta:
          family: 'Hardware/LED/PowerSupply/Internal/Status'
          description: Physical entity internal power supply LED status
          unit: "{status}"
        mapping:
          0: not_applicable
          1: off
          2: green_on
          3: green_blink
          4: amber_on
          5: amber_blink
      - OID: 1.3.6.1.4.1.6486.801.1.1.1.1.1.1.1.16
        name: chasEntPhysLedStatusPS
        chart_meta:
          family: 'Hardware/LED/PowerSupply/Status'
          description: Physical entity power supply LED status
          unit: "{status}"
        mapping:
          0: not_applicable
          1: off
          2: green_on
          3: green_blink
          4: amber_on
          5: amber_blink
      - OID: 1.3.6.1.4.1.6486.801.1.1.1.1.1.1.1.14
        name: chasEntPhysLedStatusControl
        chart_meta:
          family: 'Hardware/LED/Control/Status'
          description: Physical entity control LED status
          unit: "{status}"
        mapping:
          0: not_applicable
          1: off
          2: green_on
          3: green_blink
          4: amber_on
          5: amber_blink
      - OID: 1.3.6.1.4.1.6486.801.1.1.1.1.1.1.1.15
        name: chasEntPhysLedStatusFabric
        chart_meta:
          family: 'Hardware/LED/Fabric/Status'
          description: Physical entity fabric LED status
          unit: "{status}"
        mapping:
          0: not_applicable
          1: off
          2: green_on
          3: green_blink
          4: amber_on
          5: amber_blink
    metric_tags:
      - tag: ent_physical_class
        MIB: ENTITY-MIB
        table: entPhysicalTable
        symbol:
          name: entPhysicalClass
          OID: 1.3.6.1.2.1.47.1.1.1.1.5
        mapping:
          1: other
          2: unknown
          3: chassis
          4: backplane
          5: container
          6: power_supply
          7: fan
          8: sensor
          9: module
          10: port
          11: stack
          12: cpu
          13: energy_object
          14: battery
          15: storage_drive
      - tag: ent_physical_name
        MIB: ENTITY-MIB
        table: entPhysicalTable
        symbol:
          name: entPhysicalName
          OID: 1.3.6.1.2.1.47.1.1.1.1.7
      - tag: ent_physical_serial_num
        MIB: ENTITY-MIB
        table: entPhysicalTable
        symbol:
          name: entPhysicalSerialNum
          OID: 1.3.6.1.2.1.47.1.1.1.1.11
      - tag: ent_physical_model_name
        MIB: ENTITY-MIB
        table: entPhysicalTable
        symbol:
          name: entPhysicalModelName
          OID: 1.3.6.1.2.1.47.1.1.1.1.13

  - MIB: ALCATEL-ENT1-CHASSIS-MIB
    table:
      name: chasEntTemperatureTable
      OID: 1.3.6.1.4.1.6486.801.1.1.1.1.1.2
    symbols:
      - name: chasEntTempCurrent
        OID: 1.3.6.1.4.1.6486.801.1.1.1.1.1.2.1.1
        chart_meta:
          family: 'Hardware/Temperature/Value'
          description: Current temperature of the physical entity
          unit: "Cel"
      - OID: 1.3.6.1.4.1.6486.801.1.1.1.1.1.2.1.4
        name: chasEntTempStatus
        chart_meta:
          family: 'Hardware/Temperature/Status'
          description: Status of the temperature sensor
          unit: "{status}"
        mapping:
          1: unknown
          2: not_present
          3: under_threshold
          4: over_first_threshold
          5: over_danger_threshold
    metric_tags:
      - tag: ent_physical_class
        MIB: ENTITY-MIB
        table: entPhysicalTable
        symbol:
          name: entPhysicalClass
          OID: 1.3.6.1.2.1.47.1.1.1.1.5
        mapping:
          1: other
          2: unknown
          3: chassis
          4: backplane
          5: container
          6: power_supply
          7: fan
          8: sensor
          9: module
          10: port
          11: stack
          12: cpu
          13: energy_object
          14: battery
          15: storage_drive
        # MIB: ENTITY-MIB
        # table: entPhysicalTable
      - tag: ent_physical_name
        MIB: ENTITY-MIB
        table: entPhysicalTable
        symbol:
          name: entPhysicalName
          OID: 1.3.6.1.2.1.47.1.1.1.1.7
      - tag: ent_physical_serial_num
        MIB: ENTITY-MIB
        table: entPhysicalTable
        symbol:
          name: entPhysicalSerialNum
          OID: 1.3.6.1.2.1.47.1.1.1.1.11
      - tag: ent_physical_model_name
        MIB: ENTITY-MIB
        table: entPhysicalTable
        symbol:
          name: entPhysicalModelName
          OID: 1.3.6.1.2.1.47.1.1.1.1.13
  - MIB: ALCATEL-ENT1-CHASSIS-MIB
    table:
      name: alaChasEntPhysFanTable
      OID: 1.3.6.1.4.1.6486.801.1.1.1.3.1.1.11
    symbols:
      - name: alaChasEntPhysFanSpeed
        OID: 1.3.6.1.4.1.6486.801.1.1.1.3.1.1.11.1.4
        chart_meta:
          family: 'Hardware/Fan/Speed'
          description: Fan speed in revolutions per minute
          unit: "{revolution}/min"
    metric_tags:
      - tag: ala_chas_ent_phys_fan_status
        symbol:
          OID: 1.3.6.1.4.1.6486.801.1.1.1.3.1.1.11.1.2
          name: alaChasEntPhysFanStatus
        mapping:
          0: no_status
          1: not_running
          2: running
  - MIB: ALCATEL-ENT1-CHASSIS-MIB
    table:
      name: alaChasBpsPowerSupplyTable
      OID: 1.3.6.1.4.1.6486.801.1.1.1.3.1.1.14.4
    symbols:
      - OID: 1.3.6.1.4.1.6486.801.1.1.1.3.1.1.14.4.1.10
        name: alaChasBpsPowerSupplyOperStatus
        chart_meta:
          family: 'Hardware/PowerSupply/Operational/Status'
          description: Operational status of the power supply
          unit: "{status}"
        mapping:
          1: up
          2: down
          3: unknown
    metric_tags:
      - tag: ala_chas_bps_power_supply_name
        symbol:
          name: alaChasBpsPowerSupplyName
          OID: 1.3.6.1.4.1.6486.801.1.1.1.3.1.1.14.4.1.3
      - tag: ala_chas_bps_power_supply_serial_num
        symbol:
          name: alaChasBpsPowerSupplySerialNum
          OID: 1.3.6.1.4.1.6486.801.1.1.1.3.1.1.14.4.1.8
