Skip to content

telemetry_interface_packet_counters_test

Github Action edited this page Apr 30, 2024 · 3 revisions

gNMI-1.11: Telemetry: Interface Packet Counters

Summary

Validate interfaces counters including both IPv4 and IPv6 counters.

Procedure

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

  • Configure IPv4 and IPv6 addresses under subinterface:

    • /interfaces/interface/config/enabled
    • /interfaces/interface/subinterfaces/subinterface/config/enabled
    • /interfaces/interface/subinterfaces/subinterface/ipv4/config/enabled
    • /interfaces/interface/subinterfaces/subinterface/ipv6/config/enabled

    Validate that IPv4 and IPv6 addresses are enabled:

    • /interfaces/interface/subinterfaces/subinterface/ipv4/addresses/address/state/enabled
    • /interfaces/interface/subinterfaces/subinterface/ipv6/addresses/address/state/enabled
  • For the parent interface counters in-pkts and out-pkts:

    Check the presence of packet counter paths and monitor counters every 30 seconds:

    • /interfaces/interface[name=]/state/counters/in-pkts
    • /interfaces/interface[name=]/state/counters/out-pkts
  • Subinterfaces counters:

    Check the presence of packet counter paths:

    • TODO: /interfaces/interface[name=]/subinterfaces/subinterface[index=]/ipv4/state/counters/in-pkts
    • TODO: /interfaces/interface[name=]/subinterfaces/subinterface[index=]/ipv4/state/counters/out-pkts
    • TODO: /interfaces/interface[name=]/subinterfaces/subinterface[index=]/ipv6/state/counters/in-discarded-pkts
    • TODO: /interfaces/interface[name=]/subinterfaces/subinterface[index=]/ipv6/state/counters/out-discarded-pkts
  • Ethernet interface counters

    Check the presence of counter path including in-maxsize-exceeded:

    • TODO: /interfaces/interface/ethernet/state/counters/in-maxsize-exceeded
    • /interfaces/interface/ethernet/state/counters/in-mac-pause-frames
    • /interfaces/interface/ethernet/state/counters/out-mac-pause-frames
    • /interfaces/interface/ethernet/state/counters/in-crc-errors
    • /interfaces/interface/ethernet/state/counters/in-fragment-frames
    • /interfaces/interface/ethernet/state/counters/in-jabber-frames
  • Interface CPU and management

    Check the presence of CPU and management paths:

    • TODO: /interfaces/interface/state/cpu
    • TODO: /interfaces/interface/state/management

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 ##
  /interfaces/interface/config/enabled:
  /interfaces/interface/subinterfaces/subinterface/config/enabled:
  /interfaces/interface/subinterfaces/subinterface/ipv4/config/enabled:
  /interfaces/interface/subinterfaces/subinterface/ipv6/config/enabled:

  ## State Paths ##
  /interfaces/interface/state/counters/in-pkts:
  /interfaces/interface/state/counters/out-pkts:
  /interfaces/interface/subinterfaces/subinterface/ipv4/state/counters/in-pkts:
  /interfaces/interface/subinterfaces/subinterface/ipv4/state/counters/out-pkts:
  /interfaces/interface/subinterfaces/subinterface/ipv6/state/counters/in-pkts:
  /interfaces/interface/subinterfaces/subinterface/ipv6/state/counters/out-pkts:
  /interfaces/interface/subinterfaces/subinterface/ipv6/state/counters/in-discarded-pkts:
  /interfaces/interface/subinterfaces/subinterface/ipv6/state/counters/out-discarded-pkts:
  /interfaces/interface/ethernet/state/counters/in-maxsize-exceeded:
  /interfaces/interface/ethernet/state/counters/in-mac-pause-frames:
  /interfaces/interface/ethernet/state/counters/out-mac-pause-frames:
  /interfaces/interface/ethernet/state/counters/in-crc-errors:
  /interfaces/interface/ethernet/state/counters/in-fragment-frames:
  /interfaces/interface/ethernet/state/counters/in-jabber-frames:
  /interfaces/interface/state/cpu:
  /interfaces/interface/state/management:

rpcs:
  gnmi:
    gNMI.Subscribe:
    gNMI.Set:

Minimum DUT platform requirement

N/A

Clone this wiki locally