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

RT 7.11: Updated the script with deviation for ASpath set #3365

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

Conversation

s-nandu
Copy link
Contributor

@s-nandu s-nandu commented Aug 7, 2024

RT 7.11: Updated the script with deviation for ASpath set

Added policy result as ACCEPT for policy "match_community_regex"

(Moved RT 7.4 to #3607 )

@s-nandu s-nandu requested review from a team as code owners August 7, 2024 00:50
@s-nandu s-nandu marked this pull request as draft August 7, 2024 00:51
@coveralls
Copy link

coveralls commented Aug 7, 2024

Pull Request Test Coverage Report for Build 11979252793

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.268%

Totals Coverage Status
Change from base Build 11963899745: 0.0%
Covered Lines: 1983
Relevant Lines: 3588

💛 - Coveralls

@s-nandu s-nandu marked this pull request as ready for review September 4, 2024 05:00
@@ -100,7 +103,6 @@ func configureImportBGPPolicy(t *testing.T, dut *ondatra.DUTDevice, ipv4 string,
cs = append(cs, oc.UnionString(communityMatch))
}
communitySet.SetCommunityMember(cs)
communitySet.SetMatchSetOptions(commMatchSetOptions)
Copy link
Member

Choose a reason for hiding this comment

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

looks ok, I see it is moved into a separate, already accepted deviation in line 123.

@@ -273,6 +276,10 @@ func TestCommunitySet(t *testing.T) {
bs := cfgplugins.NewBGPSession(t, cfgplugins.PortCount2, nil)
bs.WithEBGP(t, []oc.E_BgpTypes_AFI_SAFI_TYPE{oc.BgpTypes_AFI_SAFI_TYPE_IPV4_UNICAST, oc.BgpTypes_AFI_SAFI_TYPE_IPV6_UNICAST}, []string{"port2"}, true, true)

if deviations.BgpAspathsetUnsupported(bs.DUT) {
testResults[4] = true
Copy link
Member

Choose a reason for hiding this comment

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

see above, we need some alternative configuration/policy to achieve the desired behavior of matching on as paths.

@@ -90,7 +90,7 @@ functions.
* conditions/bgp-conditions/match-community-set/config/
* community-set: "regex-community"
* match-set-options: "ANY"
* actions/config/policy-result = "NEXT_STATEMENT"
* actions/config/policy-result = "ACCEPT_ROUTE"
Copy link
Member

Choose a reason for hiding this comment

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

This looks good to me.

@@ -415,7 +449,14 @@ func configureImportExportMultifacetMatchActionsBGPPolicy(t *testing.T, dut *ond
t.Fatalf("AppendNewStatement(%s) failed: %v", matchAspathSetMedStatement, err)
}

// TODO create as-path-set on the DUT, match-as-path-set not support.
// Configure my_aspath: [ "65512" ] to match_aspath_set_med statement
if !deviations.BgpAspathsetUnsupported(dut) {
Copy link
Member

Choose a reason for hiding this comment

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

There needs to be some alternative to using aspath to achieve similar behavior. Without this, I can't accept this deviation.

@dplore dplore self-assigned this Sep 11, 2024
@dplore
Copy link
Member

dplore commented Sep 12, 2024

Fixes #3415

@dplore
Copy link
Member

dplore commented Nov 12, 2024

@s-nandu please let us know if you will be resolving the comments.

@s-nandu s-nandu changed the title RT 7.4 & RT 7.11: Updated the script with deviation for ASpath set RT 7.11: Updated the script with deviation for ASpath set Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Usage of NEXT_STATEMENT policy result in RT-7.11-import_export_multi_test
7 participants