-
Notifications
You must be signed in to change notification settings - Fork 197
test rt1.64 #4397
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
test rt1.64 #4397
Conversation
|
@crc-kt - Have we validated the PR against any vendor so far? If so can you please share the pass log? |
Our main setup is Arista based, I will share the logs for that. Did not test on Cisco. |
Please see test log here: |
Pull Request Test Coverage Report for Build 17149918806Details
💛 - Coveralls |
feature/bgp/policybase/otg_tests/Import_Export_Policy/bgp_import_export_policy_test.go
Outdated
Show resolved
Hide resolved
| otgAdvertisedRoutesv6Net = []string{"2001:db8:300:100::0", "2001:db8:300:101::0", "2001:db8:400:100::1", "2001:db8:400:101::1"} | ||
| otgDeniedRoutesv6Net = []string{"2001:db8:400:100::1", "2001:db8:400:101::1"} | ||
| otgAdvertisedRoutesv4Prefix = []uint32{32, 32, 32, 32} | ||
| otgAdvertisedRoutesv6Prefix = []uint32{127, 127, 127, 127} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@crc-kt - i see in the README we have advertised routes mask length as /127 and denied routes mask length as /128
Here we are using /127 only for all routes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
|
||
| // bgpCreateNbr creates a BGP object with neighbors pointing to ate and returns bgp object. | ||
| func bgpCreateNbr(t *testing.T, bgpParams *bgpTestParams, dut *ondatra.DUTDevice) *oc.NetworkInstance_Protocol { | ||
| t.Helper() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@crc-kt - Can we use cfgplugins to create a new bgp session? sample below
For eg:
bs := cfgplugins.NewBGPSession(t, cfgplugins.PortCount2, nil)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to use NewBGPSession upon test creation but failed (different errors), so I had to resort to doing it the way I saw it done in multiple other tests. If you want, I can try to refactor the BGP code but this comes second to new test development so it will probably have delays. Your call.
|
@crc-kt - I ran this test on my setup and the test is actually failing. Have you run this test with the recent changes and working for you? |
|
The fail logs are now attached to 415458482 |
Did you use an Arista device? I will re-run and upload the log. |
PASS log attached after typo fix |
What changed? can you please mention in this PR? |
The CLI deviation (for the Arista vendor) for setting the BGP AS Path Set filter had some typos, namely "access list" instead of "access-list" and an extra sequence number for the route-map name where there should have been none (artifacts that somehow crept back in the final commit without my notice). Moreover, since I was playing around with cfgplugins.NewBGPSession that didn't work properly for me, the active (OTG) and passive (DUT) BGP transport modes were mixed at the peer group and AF level. Corrected all of these and uploaded the pass log. |
|
With the latest changes, i see the test is now passing. Will attach the logs to the bug. 415458482 |
ram-mac
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@crc-kt - Please fix the Static analysis for this PR |
Done. |
This PR fails the rebase check. Can you please try to rebase the PR and repush once again? |
Done. Please rerun the checks from your side |
* test rt1.64 * rt-1.64 address PR comments * final rt-1.64 test pr comments * remove unused vars for staticcheck otg-rt-1.64
* test rt1.64 * rt-1.64 address PR comments * final rt-1.64 test pr comments * remove unused vars for staticcheck otg-rt-1.64
Test log: https://partnerissuetracker.corp.google.com/issues/415458482 (contains logs for Arista vendor)