# Profile for Aruba Access Point devices (with limited support)
#
# Examples:
# Access Point Products:
#     sysObjectID                        SysDescr
#     1.3.6.1.4.1.14823.1.2.71           ArubaOS (MODEL: 205), Version 6.5.1.0-4.3.1.2
#     1.3.6.1.4.1.14823.1.2.80           ArubaOS (MODEL: 335), Version 6.5.4.3-6.5.4.3
#     1.3.6.1.4.1.14823.1.2.82           ArubaOS (MODEL: 315), Version 8.5.0.5-8.5.0.5

extends:
  - _system-base.yaml
  - _aruba-base.yaml
  - _std-if-mib.yaml
  - _std-ospf-mib.yaml

# All Access Point Products (apProducts/1.3.6.1.4.1.14823.1.2) from ARUBA-MIB
selector:
  - sysobjectid:
      include:
        - 1.3.6.1.4.1.14823.1.2.*

metadata:
  device:
    fields:
      # TODO: Add more fields (no suitable info found in OIDs)
      #       - serial_number
      #       - product_name
      version:
        symbol:
          OID: 1.3.6.1.2.1.1.1.0
          name: sysDescr
          match_pattern: '\bVersion\s+([\d.-]+)'
          match_value: "$1"
          # Example: Version 6.5.1.0-4.3.1.2
      model:
        symbol:
          OID: 1.3.6.1.2.1.1.1.0
          name: sysDescr
          match_pattern: '\bMODEL:\s+([\w-]+)'
          match_value: "$1"
          # Examples:
          #  - ArubaOS (MODEL: 205), Version 6.5.1.0-4.3.1.2
      os_name:
        symbol:
          OID: 1.3.6.1.2.1.1.1.0
          name: sysDescr
          match_pattern: '\bArubaOS\b'
          match_value: "ArubaOS"
      os_version:
        symbol:
          OID: 1.3.6.1.2.1.1.1.0
          name: sysDescr
          match_pattern: '\bVersion\s+([\d.]+)'
          match_value: "$1"
          # Example: `6.5.1.0` part of `Version 6.5.1.0-4.3.1.2`
      type:
        value: "Access Point"
      vendor:
        value: Aruba
