Skip to content

telemetry_basic_check_test

Github Action edited this page Jun 10, 2024 · 4 revisions

gNMI-1.10: Telemetry: Basic Check

Summary

Validate basic telemetry paths required.

Procedure

In the automated ondatra test, verify the presence of the telemetry paths of the following features:

  • Ethernet interface

    • Check the telemetry port-speed exists with correct speed.
      • /interfaces/interfaces/interface/ethernet/state/port-speed
    • Check the telemetry mac-address with correct format.
      • /interfaces/interfaces/interface/ethernet/state/mac-address
  • Interface status

    • Check admin-status and oper-status exist and correct.
      • /interfaces/interfaces/interface/state/admin-status
      • /interfaces/interfaces/interface/state/oper-status
  • Interface physical channel

    • Check interface physical-channel exists.
      • /interfaces/interface/state/physical-channel
  • Interface status change

    • Check admin-status and oper-status are correct after interface flapping.
      • /interfaces/interfaces/interface/state/admin-status
      • /interfaces/interfaces/interface/state/oper-status
  • Interface hardware-port

  • Interface counters

    • Check the presence of the following interface counters.
      • /interfaces/interface/state/counters/in-octets
      • /interfaces/interface/state/counters/in-unicast-pkts
      • /interfaces/interface/state/counters/in-broadcast-pkts
      • /interfaces/interface/state/counters/in-multicast-pkts
      • /interfaces/interface/state/counters/in-discards
      • /interfaces/interface/state/counters/in-errors
      • /interfaces/interface/state/counters/in-fcs-errors
      • /interfaces/interface/state/counters/out-unicast-pkts
      • /interfaces/interface/state/counters/out-broadcast-pkts
      • /interfaces/interface/state/counters/out-multicast-pkts
      • /interfaces/interface/state/counters/out-octets
      • /interfaces/interface/state/counters/out-discards
      • /interfaces/interface/state/counters/out-errors
  • Send the traffic over the DUT.

    • Check some counters are updated correctly.
  • Component

    • Check the following component paths exists
      • /components/component/integrated-circuit/state/node-id
      • /components/component/state/parent
  • CPU component state

    • Check the following component paths exists
      • (type=CPU) /components/component/state/description
      • (type=CPU) /components/component/state/mfg-name
  • Controller card last-reboot-time and reason

    • Check the following component paths exists
      • (type=CONTROLLER_CARD) /components/component[name=]/state/last-reboot-time
      • (type=CONTROLLER_CARD) /components/component[name=]/state/last-reboot-reason
  • Active Controller Card Software version

    • Check the following component path and value exists.
      • /system/state/software-version
  • Controller Card Software versions

    • Check the following component path and value exists for component type OPERATING_SYSTEM that is present/installed, and whose parent component type is CONTROLLER_CARD.
      • /components/component/state/software-version
  • LACP

    • Check the bundle interface member path and LACP counters and status.
      • /lacp/interfaces/interface/members/member
  • AFT

    • Check the following AFT path exists.
      • TODO: /network-instances/network-instance/afts
  • P4RT

    • Enable p4-runtime.
    • configure interface port ID with minimum and maximum uint32 values.
    • Check the following path exists with correct interface ID.
      • /interfaces/interfaces/state/id
    • configure FAP device ID with minimum and maximum uint64 values.
    • Check the following path exists with correct node ID.
      • /components/component/integrated-circuit/state/node-id

OpenConfig Path and RPC Coverage

The below yaml defines the OC paths intended to be covered by this test. OC paths used for test setup are not listed here.

paths:
  ## Config Paths ##
  # None

  ## State Paths ##
  /interfaces/interface/state/admin-status:
  /lacp/interfaces/interface/members/member/state/interface:
  /lacp/interfaces/interface/members/member/state/counters/lacp-in-pkts:
  /lacp/interfaces/interface/members/member/state/counters/lacp-out-pkts:
  /lacp/interfaces/interface/members/member/state/aggregatable:
  /lacp/interfaces/interface/members/member/state/collecting:
  /lacp/interfaces/interface/members/member/state/distributing:
  /lacp/interfaces/interface/members/member/state/partner-id:
  /lacp/interfaces/interface/members/member/state/partner-key:
  /lacp/interfaces/interface/members/member/state/partner-port-num:
  /interfaces/interface/ethernet/state/mac-address:
  /interfaces/interface/state/hardware-port:
  /interfaces/interface/state/id:
  /interfaces/interface/state/oper-status:
  /interfaces/interface/ethernet/state/port-speed:
  /interfaces/interface/state/physical-channel:
  /components/component/integrated-circuit/state/node-id:
    platform_type: [ "INTEGRATED_CIRCUIT" ]
  /components/component/state/parent:
    platform_type: [
        "CONTROLLER_CARD",
        "LINECARD",
        "FABRIC",
        "POWER_SUPPLY",
        "INTEGRATED_CIRCUIT"
    ]
  /interfaces/interface/state/counters/in-octets:
  /interfaces/interface/state/counters/in-unicast-pkts:
  /interfaces/interface/state/counters/in-broadcast-pkts:
  /interfaces/interface/state/counters/in-multicast-pkts:
  /interfaces/interface/state/counters/in-discards:
  /interfaces/interface/state/counters/in-errors:
  /interfaces/interface/state/counters/in-fcs-errors:
  /interfaces/interface/state/counters/out-unicast-pkts:
  /interfaces/interface/state/counters/out-broadcast-pkts:
  /interfaces/interface/state/counters/out-multicast-pkts:
  /interfaces/interface/state/counters/out-octets:
  /interfaces/interface/state/counters/out-discards:
  /interfaces/interface/state/counters/out-errors:
  /qos/interfaces/interface/output/queues/queue/state/transmit-pkts:
  /qos/interfaces/interface/output/queues/queue/state/transmit-octets:
  /qos/interfaces/interface/output/queues/queue/state/dropped-pkts:
  /qos/interfaces/interface/output/queues/queue/state/dropped-octets:

rpcs:
  gnmi:
    gNMI.Subscribe:

Minimum DUT platform requirement

N/A

Clone this wiki locally