Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding retry for MED check after config change #2394

Open
wants to merge 458 commits into
base: main
Choose a base branch
from

Conversation

bkreddy143
Copy link
Contributor

  1. Added loop to retry for updated MED check after config change
  2. Also modified OTG test to be inline with ATE test

"This code is a Contribution to the OpenConfig Feature Profiles project ("Work") made under the Google Software Grant and Corporate Contributor License Agreement ("CLA") and governed by the Apache License 2.0. No other rights or licenses in or to any of Nokia's intellectual property are granted for any other purpose. This code is provided on an "as is" basis without any warranties of any kind."

@bkreddy143 bkreddy143 requested review from a team as code owners November 16, 2023 19:43
@bkreddy143 bkreddy143 requested review from a team and thesrinath November 16, 2023 19:43
@OpenConfigBot
Copy link

OpenConfigBot commented Nov 16, 2023

Pull Request Functional Test Report for #2394 / 3effe9a

Virtual Devices

Device Test Test Documentation Job Raw Log
Arista cEOS status
RT-1.12: BGP always compare MED
Cisco 8000E status
RT-1.12: BGP always compare MED
Cisco XRd status
RT-1.12: BGP always compare MED
Juniper ncPTX status
RT-1.12: BGP always compare MED
Nokia SR Linux status
RT-1.12: BGP always compare MED
Openconfig Lemming status
RT-1.12: BGP always compare MED

Hardware Devices

Device Test Test Documentation Raw Log
Arista 7808 status
RT-1.12: BGP always compare MED
Cisco 8808 status
RT-1.12: BGP always compare MED
Juniper PTX10008 status
RT-1.12: BGP always compare MED
Nokia 7250 IXR-10e status
RT-1.12: BGP always compare MED

Help

@coveralls
Copy link

coveralls commented Nov 16, 2023

Pull Request Test Coverage Report for Build 10087219277

Details

  • 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 55.5%

Totals Coverage Status
Change from base Build 10085646249: 0.0%
Covered Lines: 1983
Relevant Lines: 3573

💛 - Coveralls

dplore and others added 19 commits July 16, 2024 21:44
* RT-1.33 : BGP Prefix-set initial commit

Following changes in this PR -
       1. Adding test script bgp_prefix_set_test.go
       2. Adding new deviation skip_prefix_set_mode

"This code is a Contribution to the OpenConfig Feature Profiles project ("Work") made under the Google Software Grant and Corporate Contributor License Agreement ("CLA") and governed by the Apache License 2.0. No other rights or licenses in or to any of Nokia's intellectual property are granted for any other purpose. This code is provided on an "as is" basis without any warranties of any kind."

* Fixing rundata using tools/addrundata
* Management HA Readme

* updating git issue

* updating the README
* management HA solution test

* merged readme
* Cleanup featureprofiles static analysis errors.

* added .test file by mistake

* fix tests
* add registry and body

* define policy rough draft

* try yaml formatting for path list

* Defined paths and policies

* add expected results

* fix comm name

* add export policy

* Break out config and validation in separate subtests

* define accept policy for test environment setup verification

Co-authored-by: rszarecki <[email protected]>

* revise numbering, break out steps for config vs. validation

---------

Co-authored-by: rszarecki <[email protected]>
* ADD a test to verify ZR optic firmware version streaming telemetry
… subtest (openconfig#2804)

* Add workaround for Arista

* fix go vet error
…ew subtest for PolicyW (openconfig#2648)

* Adding deviation for new subtest for PolicyW

* add deviation

* fix checks

* Add deviation for TE-3.7

* Changes for te-3.7 and resolve conflicts

* fix conflicts

* resolve conflicts

---------

Co-authored-by: AmrNJ <[email protected]>
* KNE: migrating configs to grpc_server
"This code is a Contribution to the OpenConfig Feature Profiles project ("Work") made under the Google Software Grant and Corporate Contributor License Agreement ("CLA") and governed by the Apache License 2.0. No other rights or licenses in or to any of Nokia's intellectual property are granted for any other purpose. This code is provided on an "as is" basis without any warranties of any kind."

* added jrpc-server
"This code is a Contribution to the OpenConfig Feature Profiles project ("Work") made under the Google Software Grant and Corporate Contributor License Agreement ("CLA") and governed by the Apache License 2.0. No other rights or licenses in or to any of Nokia's intellectual property are granted for any other purpose. This code is provided on an "as is" basis without any warranties of any kind."
* Add CD test

* Add CD test

* Revise readme

* Revise readme

* fix description mismatch

* minor update
…#2834)

* Arista specific fixes for basic_static_route_support_test

* fix flow stats logic
…penconfig#2828)

* Fix TE-16.1 basic_encap_test for Arista due to expected deviations
Fix the test failures due to the following issues in the test
- The test was setting
  "network-instances/network-instance/policy-forwarding/policies/policy/rules/rule/l2/ethertype"
  to detect match rule AF for the default rule. But this path should not
  be used for that and is not supported by EOS.
- Add the following deviations for EOS:
    static_protocol_name: "STATIC"
    gribi_mac_override_static_arp_static_route: true
    interface_enabled: true
    ttl_copy_unsupported: true ( The TTL expectation is wrong in the test. once that is fixed, this can be removed )
    default_network_instance: "default"
- Add static routes to magic IP and setup a static arp entry for magic ip address with all the egress interfaces for EOS.
- Change the publishing of AFT entries such that NH/NHG aft entries are pushed together.

The test still fails on validating encapRatio. We need to see if the test has the right flows to validate this. But pushing the fixes for other issues.

* Address pramod's comments.

---------

Co-authored-by: Pramod Maurya <[email protected]>
* Update qos_policy_config_test ECN Queue config min/max Threshold etc

* Update qos_policy_config_test ECN Queue config min/max Threshold etc

---------

Co-authored-by: anksaiki <[email protected]>
Co-authored-by: rszarecki <[email protected]>
wenovus and others added 26 commits July 16, 2024 21:44
Also remove irrelevant coverage in one of the files that was added.
* FNT nightly failure: Nokia

* updated readme

* update readme

* readme changes

---------

Co-authored-by: Ram <[email protected]>
* system_generic_health_check xpath fix

* addressed deviation comment and leaf sw change enhancements

* addressing merge coflicts

* addressing readme static failures

* addressing readme static failures

* Fixed static failure
…openconfig#3033)

* Added stop traffic before getting the traffic flow statistics

* Updated README based on new specification

---------

Co-authored-by: KandukuriSudheer <[email protected]>
* fix link_bandwidth_test.go

* static analysis failure

* static analysis fix

* static analysis fix

* reverting the readme changes

* Update deviations.go

* Update metadata.pb.go

* Update metadata.pb.go

* fixing static analysis failure

* Update link_bandwidth_test.go

* Update link_bandwidth_test.go

* Update link_bandwidth_test.go

* Update link_bandwidth_test.go
* Include HW name in nosimage.proto

* Fix

* don't break proto
* reate a Readme file for DP-1.5 Egress Strict Priority scheduler with bursty traffic

* Update DP-1.5 Readme
…3133)

* -Removal of `explicit_interface_ref_definition` deviation from following metadata.textproto
TE-3.31
TE-3.3
TE-3.1
TE-14.2
TE-14.1

"This code is a Contribution to the OpenConfig Feature Profiles project ("Work") made under the Google Software Grant and Corporate Contributor License Agreement ("CLA") and governed by the Apache License 2.0. No other rights or licenses in or to any of Nokia's intellectual property are granted for any other purpose. This code is provided on an "as is" basis without any warranties of any kind."

* Updated README.md of TE-3.3

"This code is a Contribution to the OpenConfig Feature Profiles project ("Work") made under the Google Software Grant and Corporate Contributor License Agreement ("CLA") and governed by the Apache License 2.0. No other rights or licenses in or to any of Nokia's intellectual property are granted for any other purpose. This code is provided on an "as is" basis without any warranties of any kind."

* Removal of `explicit_interface_ref_definition` deviation from OTG files of TE-3.31 & TE-3.3

"This code is a Contribution to the OpenConfig Feature Profiles project ("Work") made under the Google Software Grant and Corporate Contributor License Agreement ("CLA") and governed by the Apache License 2.0. No other rights or licenses in or to any of Nokia's intellectual property are granted for any other purpose. This code is provided on an "as is" basis without any warranties of any kind."

* Updated README.md of TE-3.3 under otg_tests

"This code is a Contribution to the OpenConfig Feature Profiles project ("Work") made under the Google Software Grant and Corporate Contributor License Agreement ("CLA") and governed by the Apache License 2.0. No other rights or licenses in or to any of Nokia's intellectual property are granted for any other purpose. This code is provided on an "as is" basis without any warranties of any kind."
* fix link_bandwidth_test

* Include HW name in nosimage.proto (openconfig#2947)

* Include HW name in nosimage.proto

* Fix

* don't break proto

* fix static analysis

* Create a Readme file for DP-1.5 (openconfig#3044)

* reate a Readme file for DP-1.5 Egress Strict Priority scheduler with bursty traffic

* Update DP-1.5 Readme

* fix for deviation and adding AS check for dut AS

---------

Co-authored-by: Wen Bo Li <[email protected]>
Co-authored-by: ihebboubaker <[email protected]>
* modify power range, update logical chanel config and remove min/max/avg check

* Modify README file

* Modify README

* adding library to properly configure logical channels
…config#3103)

* CD test update and add a telemetry deviation

* refactor with cfgplugins

* update the same for inventory test

* remove outdated deviations

* add back the necessary deviation

* remove invalid value range check

* Add log msgs
…3264)

* Update testregistry.textproto

Add Test# for BGP route-refresh capability

* Update testregistry.textproto
* Add README for IPv6 ND suppression.
* modify power range, update logical chanel config and remove min/max/avg check

* Modify README file

* Modify README

* adding library to properly configure logical channels

* update in/out power to align with other zr tests

* update in/out power README

* update in/out power README one more time

* update in/out power README one more time

* update in/out power README one more time

* update in/out power README one more time

* update in/out power README one more time

* update in/out power README one more time
* add fan_tray type to readme

* Add FAN_TRAY type to telemetry_inventory_test.go.

* add NumFanTrays arg

* skip fan tray telemetry check when 0 are expected

* add FAN_TRAY as platform_type to README.

* validate that fan tray parent is the chassis.

* validate fan component's parent.

* Add deviation for fan tray type.

* Use fan tray deviation in telemetry_inventory_test.

* fix call to FanTrayTypeUnsupported.

* Remove switch_chip_id_unsupported from Nokia.

* Add arg_num_fans.

* Skip fan validation when args_num_fans is 0.

* Update args.go

* Fix metadata.pb.go.

* Fix metadata.pb.go.

* Fix deviations.go typo.

* Only check that FAN has ancestor chassis, not the immediate parent type.

* Fix metadata.pg.go.

* FIx metadata.pb.go.

* Fix metadata.pb.go.

* Remove fan_tray deviation from metadata.proto.

* Remove fan_tray deviation from deviations.go.

* Remove fan_tray deviation from metadata.textproto.

* Update metadata.proto

* Remove fan_tray deviation from telemetry_inventory_test.go.

* Fix metadata.pb.go.

* Fix brackets in telemetry_inventory_test.go.
* Create README for RT-7.6: link bandwidth aggregation.
@nsadhasivam nsadhasivam self-assigned this Aug 22, 2024
break checkMEDLoop
case diff != "" && repeat > 0:
t.Logf("MED values not as expected , wait for 10 sec before retry. want %v , got %v", wantMED, gotMED)
time.Sleep(10 * time.Second)
Copy link
Contributor

Choose a reason for hiding this comment

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

@bkreddy143 bkreddy143 requested a review from a team as a code owner February 5, 2025 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.