featureprofiles icon indicating copy to clipboard operation
featureprofiles copied to clipboard

Adding encap/decap tunnel interface counters

Open ram-mac opened this issue 4 months ago • 6 comments

Adding tunnel interface counters to encap/decap interfaces

ram-mac avatar Sep 30 '25 07:09 ram-mac

Pull Request Functional Test Report for #4656 / b0e1ba684902dccef1787b3cc1c6bdec9afd8483

Virtual Devices

Device Test Test Documentation Job Raw Log
Arista cEOS status
TE-16.1: basic encapsulation tests
386f4c58 Log
Cisco 8000E status
TE-16.1: basic encapsulation tests
6f7269ef Log
Cisco XRd status
TE-16.1: basic encapsulation tests
01aca2dc Log
Juniper ncPTX status
TE-16.1: basic encapsulation tests
04642f64 Log
Nokia SR Linux status
TE-16.1: basic encapsulation tests
1336f015 Log
Openconfig Lemming status
TE-16.1: basic encapsulation tests
b1f57df9 Log

Hardware Devices

Device Test Test Documentation Raw Log
Arista 7808 status
TE-16.1: basic encapsulation tests
Cisco 8808 status
TE-16.1: basic encapsulation tests
Juniper PTX10008 status
TE-16.1: basic encapsulation tests
Nokia 7250 IXR-10e status
TE-16.1: basic encapsulation tests

Help

OpenConfigBot avatar Sep 30 '25 07:09 OpenConfigBot

Pull Request Test Coverage Report for Build 18371850770

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 975 unchanged lines in 7 files lost coverage.
  • Overall coverage increased (+0.5%) to 12.283%

Files with Coverage Reduction New Missed Lines %
internal/iputil/iputil.go 3 94.12%
internal/deviations/deviations.go 9 0.0%
internal/cfgplugins/mpls.go 24 0.0%
internal/otg_helpers/packetvalidationhelpers/packetvalidationhelpers.go 31 0.0%
internal/cfgplugins/qos.go 66 0.0%
internal/cfgplugins/policyforwarding.go 86 0.0%
proto/metadata_go_proto/metadata.pb.go 756 0.0%
<!-- Total: 975
Totals Coverage Status
Change from base Build 18146974775: 0.5%
Covered Lines: 2224
Relevant Lines: 18107

💛 - Coveralls

coveralls avatar Sep 30 '25 07:09 coveralls

@vvlakshmanamurthy Please review the Readme for ngPR

rohit-rp avatar Oct 01 '25 06:10 rohit-rp

I still see the tunnel encap counters are present?

This is a gribi focused test for programming the AFT tables. There are some other tests for AFT counters.

The relevant AFT counters paths to interoperate with gRIBI include:

/network-instances/network-instance/afts/ipv4-unicast/ipv4-entry/state/counters/packets-forwarded leaf counter64 openconfig-network-instance /network-instances/network-instance/afts/ipv4-unicast/ipv4-entry/state/counters/octets-forwarded leaf counter64 openconfig-network-instance /network-instances/network-instance/afts/ipv6-unicast/ipv6-entry/state/counters/packets-forwarded leaf counter64 openconfig-network-instance /network-instances/network-instance/afts/ipv6-unicast/ipv6-entry/state/counters/octets-forwarded leaf counter64

openconfig-network-instance /network-instances/network-instance/afts/next-hops/next-hop/state/counters/packets-forwarded leaf counter64 openconfig-network-instance /network-instances/network-instance/afts/next-hops/next-hop/state/counters/octets-forwarded leaf counter64 openconfig-aft-summary /network-instances/network-instance/afts/aft-summaries/ipv4-unicast/protocols/protocol/state/counters/aft-entries leaf uint64 openconfig-aft-summary /network-instances/network-instance/afts/aft-summaries/ipv6-unicast/protocols/protocol/state/counters/aft-entries

For policy-forwarding, some paths include:

openconfig-network-instance /network-instances/network-instance/afts/policy-forwarding/policy-forwarding-entry/state/counters/packets-forwarded leaf counter64 openconfig-network-instance /network-instances/network-instance/afts/policy-forwarding/policy-forwarding-entry/state/counters/octets-forwarded leaf counter64 openconfig-network-instance /network-instances/network-instance/policy-forwarding/policies/policy/rules/rule/state/matched-pkts leaf counter64 openconfig-network-instance /network-instances/network-instance/policy-forwarding/policies/policy/rules/rule/state/matched-octets leaf counter64

Let's discuss offline what the use case is and if this test should be revised, or if some other test already covers the counters or if a new test is needed

dplore avatar Oct 11 '25 00:10 dplore

  • for telematry we shall stream and collect/network-instances/network-instance/afts/next-hops/next-hop/state/counters for:
    • for NH#201 and NH#202. to collect ENCAPSULATION counters and wECMP among tunnels.
    • for NH#1, NH#2, NH#10, NH#11, NH100, NH101 to collect wECMP hirearchy
  • The Test plan shall explicitly spell-out traffic share hancle aby all this NH. I mean compouded weights.
    • Like [NH#10, NH#11, NH100, NH101] = [5:15:24:36]

rszarecki avatar Oct 23 '25 16:10 rszarecki

openconfig-network-instance /network-instances/network-instance/afts/next-hops/next-hop/state/counters/packets-forwarded leaf counter64 openconfig-network-instance /network-instances/network-instance/afts/next-hops/next-hop/state/counters/octets-forwarded leaf counter64

Thanks @rszarecki for that. Ok, so we want some test to cover these counters:

openconfig-network-instance /network-instances/network-instance/afts/next-hops/next-hop/state/counters/packets-forwarded leaf counter64
openconfig-network-instance /network-instances/network-instance/afts/next-hops/next-hop/state/counters/octets-forwarded leaf counter64

Knowing there is some significant variation in support of these gnmi counters, which is quite different than the support for gRIBI programming of next-hops, I recommend a separate README just for the AFT next-hop counters.

dplore avatar Oct 27 '25 20:10 dplore