Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add deviation for interface counter #642

Merged
liulk merged 7 commits into
openconfig:mainfrom
mojiiba:moji/counter_leaves
Oct 14, 2022
Merged

Add deviation for interface counter #642
liulk merged 7 commits into
openconfig:mainfrom
mojiiba:moji/counter_leaves

Conversation

@mojiiba

@mojiiba mojiiba commented Oct 13, 2022

Copy link
Copy Markdown
Contributor

This pull adds a deviation to use gnmi get at the container level for reading interface counters. It also guards the ipv4/enabled with the related deviation.

@mojiiba mojiiba requested a review from a team as a code owner October 13, 2022 06:27
@mojiiba mojiiba requested a review from bstoll October 13, 2022 06:27
Comment thread internal/deviations/deviations.go Outdated
InterfaceEnabled = flag.Bool("deviation_interface_enabled", false,
"Device requires interface enabled leaf booleans to be explicitly set to true. Full OpenConfig compliant devices should pass both with and without this deviation.")

CounterLeavesNotUpdated = flag.Bool("deviation_counters_leaves_notupdated", false, "Device updates counters when they are queried at the container level.")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
CounterLeavesNotUpdated = flag.Bool("deviation_counters_leaves_notupdated", false, "Device updates counters when they are queried at the container level.")
InterfaceCountersFromContainer = flag.Bool("deviation_interface_counters_from_container", false, "Device only supports querying interface counters from the state container, not from individual counter leaves.")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you, addressed

Comment on lines +909 to +911
if *deviations.InterfaceEnabled {
s.Enabled = ygot.Bool(true)
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already done in #641 ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, I missed this one

@coveralls

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 3247650336

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 72.664%

Totals Coverage Status
Change from base Build 3245719980: 0.0%
Covered Lines: 1462
Relevant Lines: 2012

💛 - Coveralls

@liulk

liulk commented Oct 14, 2022

Copy link
Copy Markdown
Contributor

/gcbrun

@liulk liulk merged commit 58dd9ed into openconfig:main Oct 14, 2022
singh-prem pushed a commit to mingyangcisco/featureprofiles that referenced this pull request Dec 13, 2022
* add InterfaceOperStatus deviation

* Revert "add InterfaceOperStatus deviation"

This reverts commit f9855b4.

* add deviation for counters leaves that are not updated

* add deviation for counters leaves that are not updated

* addressed comments
jasdeep-hundal added a commit to jasdeep-hundal/featureprofiles that referenced this pull request Apr 11, 2023
jasdeep-hundal added a commit to jasdeep-hundal/featureprofiles that referenced this pull request Apr 12, 2023
jasdeep-hundal added a commit to jasdeep-hundal/featureprofiles that referenced this pull request Apr 12, 2023
jasdeep-hundal added a commit to jasdeep-hundal/featureprofiles that referenced this pull request Apr 19, 2023
jasdeep-hundal added a commit that referenced this pull request Apr 19, 2023
)

* Replicate PR545/546 in OTG telemetry basic test

References:
- #545
- #546

* Replicate PR642 in OTG telemetry basic test

Reference: #642

* Replicate PR890 in OTG telemetry basic test

Reference: #890

* Replicate PR1025 in OTG telemetry basic test

Reference: #1025

* Replicate PR652 in OTG telemetry basic test

Reference: #652

* Replicate PR1196 in OTG telemetry basic test

Reference: #1196

* Replicate PR1195 in OTG telemetry basic test

Reference: #1195

* Replicate PR1211 in OTG telemetry basic test

Reference: #1211

* Replicate PR1248 in OTG telemetry basic test

Reference: #1248

* Replicate PR1212 in OTG telemetry basic test

Reference: #1212

* Replicate PR1317 in OTG telemetry basic test

Reference: #1317

* Remove extra subintf enabled bit not guarded by correct deviations
jasdeep-hundal added a commit that referenced this pull request Apr 19, 2023
… the ATE version (#1415)

* Replicate PR358 in OTG telemetry basic test

Reference: #358

* Replicate PR373/412 in OTG telemetry basic test

References:
- #373
- #412

* Replicate PR641 in OTG telemetry basic test

Reference: #641

* Replicate PR642 in OTG telemetry basic test

Reference: #642

* Replicate PR1322 in OTG telemetry basic test

Reference: #1322

* Replicate PR1407 in OTG telemetry basic test

Reference: #1407

* Remove duplicated test case
prinikasn pushed a commit that referenced this pull request Jun 30, 2023
* add InterfaceOperStatus deviation

* Revert "add InterfaceOperStatus deviation"

This reverts commit f9855b4.

* add deviation for counters leaves that are not updated

* add deviation for counters leaves that are not updated

* addressed comments
prinikasn pushed a commit that referenced this pull request Jun 30, 2023
)

* Replicate PR545/546 in OTG telemetry basic test

References:
- #545
- #546

* Replicate PR642 in OTG telemetry basic test

Reference: #642

* Replicate PR890 in OTG telemetry basic test

Reference: #890

* Replicate PR1025 in OTG telemetry basic test

Reference: #1025

* Replicate PR652 in OTG telemetry basic test

Reference: #652

* Replicate PR1196 in OTG telemetry basic test

Reference: #1196

* Replicate PR1195 in OTG telemetry basic test

Reference: #1195

* Replicate PR1211 in OTG telemetry basic test

Reference: #1211

* Replicate PR1248 in OTG telemetry basic test

Reference: #1248

* Replicate PR1212 in OTG telemetry basic test

Reference: #1212

* Replicate PR1317 in OTG telemetry basic test

Reference: #1317

* Remove extra subintf enabled bit not guarded by correct deviations
prinikasn pushed a commit that referenced this pull request Jun 30, 2023
… the ATE version (#1415)

* Replicate PR358 in OTG telemetry basic test

Reference: #358

* Replicate PR373/412 in OTG telemetry basic test

References:
- #373
- #412

* Replicate PR641 in OTG telemetry basic test

Reference: #641

* Replicate PR642 in OTG telemetry basic test

Reference: #642

* Replicate PR1322 in OTG telemetry basic test

Reference: #1322

* Replicate PR1407 in OTG telemetry basic test

Reference: #1407

* Remove duplicated test case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants