featureprofiles icon indicating copy to clipboard operation
featureprofiles copied to clipboard

RT-1.32: BGP policy actions - MED LocPref changes incorporated

Open ampattan opened this issue 1 year ago • 8 comments

Updated metadata.textproto

  • ExplicitPortSpeed removed.

Updated actions_MED_LocPref_prepend_flow_control_test.go

  • The "deleteNbr" detail has been updated for RT-1.32.5 to address an issue where an unintended neighbor was being used for deleting the import and export policy.
  • The log messages have been modified to print proper value.
  • Skipping local-preference validation on eBGP based on RFC-4271, Section-5.1.5

The new yang changes for BGP MED policy action using updated ondatra

"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."

ampattan avatar Sep 23 '24 10:09 ampattan

/fptest virtual

dplore avatar Nov 16 '24 00:11 dplore

Pull Request Test Coverage Report for Build 14640996967

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 18.016%

Totals Coverage Status
Change from base Build 14634818763: 0.0%
Covered Lines: 2481
Relevant Lines: 13771

💛 - Coveralls

coveralls avatar Nov 16 '24 00:11 coveralls

HW log with these changes are available at - b/390080025

ampattan avatar Jan 15 '25 08:01 ampattan

@dplore / @nsadhasivam , can you review this please

ksgireesha avatar Mar 17 '25 10:03 ksgireesha

@ampattan - This test is failing for Nokia with error and iam using the right image AFAIK (0.0.1-68451)

Failing to set the TestBGPPolicy/Configure_eBGP_increase_MED_Import_Export_Policy }: Schema '/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/config' has no local leaf with the name 'set-med-action'. Options are [set-route-origin, set-local-pref, set-next-hop, set-med]: Parse error on line 18: "set-med": 100, Input: '{ "openconfig-routing-policy:policy-definitions": { "policy-definition": [ { "config": { "name": "med-policy" }, "name": "med-policy", "statements": { "statement": [ { "actions": { "config": { "policy-result": "ACCEPT_ROUTE" }, "openconfig-bgp-policy:bgp-actions": { "config": { "set-med": 100, ...' === RUN TestBGPPolicy/Configure_eBGP_set_NEXT-STATEMENT_Import_Export_Policy

    }: Schema '/routing-policy/policy-definitions/policy-definition/statements/statement/actions/bgp-actions/config' has no local leaf with the name 'set-med-action'. Options are [set-route-origin, set-local-pref, set-next-hop, set-med]: Parse error on line 18:                     "set-med": 70,
    Input:
    '{
      "openconfig-routing-policy:policy-definitions": {
        "policy-definition": [
          {
            "config": {
              "name": "flow-control-policy"
            },
            "name": "flow-control-policy",
            "statements": {
              "statement": [
                {
                  "actions": {
                    "config": {
                      "policy-result": "NEXT_STATEMENT"
                    },
                    "openconfig-bgp-policy:bgp-actions": {
                      "config": {
                        "set-med": 70,
     ...'

=== RUN TestBGPPolicy/Configure_eBGP__prepend_10_x_local_ASN_Import_Export_Policy

ram-mac avatar Mar 21 '25 06:03 ram-mac

--- FAIL: TestBGPPolicy (215.14s) --- PASS: TestBGPPolicy/Configure_OTG (98.26s) --- PASS: TestBGPPolicy/Configure_DUT_interfaces (3.86s) --- PASS: TestBGPPolicy/Configure_DEFAULT_network_instance (0.65s) --- PASS: TestBGPPolicy/Configure_BGP_v4_and_v6_Neighbors (2.14s) --- PASS: TestBGPPolicy/Verify_port_status_on_DUT (1.24s) --- PASS: TestBGPPolicy/Verify_BGP_session (33.30s) --- FAIL: TestBGPPolicy/Configure_eBGP_set_MED_Import_Export_Policy (1.28s) --- FAIL: TestBGPPolicy/Configure_eBGP_increase_MED_Import_Export_Policy (1.27s) --- PASS: TestBGPPolicy/Configure_iBGP_set_Local_Preference_Import_Export_Policy (24.70s) --- FAIL: TestBGPPolicy/Configure_eBGP_set_NEXT-STATEMENT_Import_Export_Policy (1.37s) --- PASS: TestBGPPolicy/Configure_eBGP__prepend_10_x_local_ASN_Import_Export_Policy (23.35s) --- PASS: TestBGPPolicy/Configure_eBGP__prepend_10_x_ASN_Import_Export_Policy (23.73s)

ram-mac avatar Mar 21 '25 06:03 ram-mac

@ampattan - as discussed, iam assigning back the PR to you since this is currently not verifiable on the DCGate image that we have. Once the PR is ready to validate, flip it back to me.

ram-mac avatar Mar 21 '25 07:03 ram-mac

BgpSetMedActionUnsupported deviation has been introduced to accommodate set-med action changes.

Please refer the discussion https://github.com/openconfig/featureprofiles/pull/3505#discussion_r1935943613

ampattan avatar Apr 22 '25 06:04 ampattan

@ampattan - Static analysis are failing - can u please fix them and assign back.

ram-mac avatar Apr 24 '25 08:04 ram-mac

@ampattan - Static analysis are failing - can u please fix them and assign back.

removed unused function.

ampattan avatar Apr 24 '25 11:04 ampattan