Skip to content

Conversation

@wenovus
Copy link
Contributor

@wenovus wenovus commented May 19, 2023

  • Declare commonly used paths.
  • Use updateAppliedState to allow concurrent threads to update the appliedState.
  • Add path subscriptions for BGP policies (not implemented yet)

BGP integration tests pass

* Declare commonly used paths.
* Use updateAppliedState to allow concurrent threads to update the
  appliedState.
* Add path subscriptions for BGP policies (not implemented yet)

BGP integration tests pass
@wenovus wenovus requested a review from DanG100 May 19, 2023 00:52
@github-actions
Copy link

github-actions bot commented May 19, 2023

Pull Request Test Coverage Report for Build 5020512185

  • 98 of 109 (89.91%) changed or added relevant lines in 1 file are covered.
  • 10 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.04%) to 2.389%

Changes Missing Coverage Covered Lines Changed/Added Lines %
bgp/gobgp.go 98 109 89.91%
Files with Coverage Reduction New Missed Lines %
bgp/gobgp.go 2 88.13%
dataplane/internal/kernel/kerneltest/kernel.go 8 72.6%
Totals Coverage Status
Change from base Build 5018244714: 0.04%
Covered Lines: 12610
Relevant Lines: 527785

💛 - Coveralls

@wenovus wenovus force-pushed the bgpconfig-refactor branch from a4f7237 to ed3efbf Compare May 19, 2023 03:24
}
}

func updateAppliedStateHelper[T ygot.GoStruct](yclient *ygnmi.Client, path ygnmi.SingletonQuery[T], appliedState T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

optional: inline this into updateAppliedState so that someone doesn't call it instead of updateAppliedState. it's only 3 lines

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm still just very slightly for keeping this since it might be applicable for other handlers

@wenovus wenovus merged commit 23b89a4 into main May 22, 2023
@wenovus wenovus deleted the bgpconfig-refactor branch May 22, 2023 17:22
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