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

Support set-local-pref and set-med #238

Merged
merged 11 commits into from
Aug 25, 2023
Merged

Support set-local-pref and set-med #238

merged 11 commits into from
Aug 25, 2023

Conversation

wenovus
Copy link
Contributor

@wenovus wenovus commented Aug 23, 2023

Refactored community-set test for testing other attributes:

  • There is now only one policy-setting phase for simplification.
  • Each route has its own policy statement switch case block for creating related policies.

Refactored community-set test for testing other attributes.
* There is now only one policy-setting phase for simplification.
* Each route has its own policy statement switch case block for
  creating related policies.
@wenovus wenovus requested a review from DanG100 August 23, 2023 15:12
@wenovus wenovus removed the request for review from DanG100 August 23, 2023 16:04
@wenovus wenovus marked this pull request as draft August 23, 2023 16:04
@wenovus wenovus changed the title Support set-local-ref and set-med Support set-local-pref and set-med Aug 24, 2023
@wenovus wenovus marked this pull request as ready for review August 24, 2023 17:35
@wenovus wenovus requested a review from DanG100 August 24, 2023 17:35
@wenovus
Copy link
Contributor Author

wenovus commented Aug 24, 2023

Verified integration tests locally using go test integration_tests/...

var installRejectStmt bool
rejectStmt := &oc.RoutingPolicy_PolicyDefinition_Statement{Name: ygot.String(route + "-reject-policy")}

switch i {
Copy link
Collaborator

Choose a reason for hiding this comment

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

this isn't very clear. i don't see why i == 1 means set communites

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a comment. Each index refers to an input test route, and each one has its corresponding policies that applies to it. Each one is essentially a subtest that re-uses the topology.

Base automatically changed from refactor-policy-tests to main August 25, 2023 00:19
@github-actions
Copy link

github-actions bot commented Aug 25, 2023

Pull Request Test Coverage Report for Build 5978619732

  • 0 of 21 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.001%) to 1.801%

Changes Missing Coverage Covered Lines Changed/Added Lines %
bgp/ocgobgp.go 0 21 0.0%
Totals Coverage Status
Change from base Build 5970271776: 0.001%
Covered Lines: 11087
Relevant Lines: 615595

💛 - Coveralls

@wenovus wenovus merged commit a71e021 into main Aug 25, 2023
8 checks passed
@wenovus wenovus deleted the local-ref-med branch August 25, 2023 17:29
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.

2 participants