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

add a method:TEManager.add_breakdowns_to_connection(connection_reques… #188

Merged

Conversation

YufengXin
Copy link
Collaborator

…t, breakdown)

to address the "send breakdowns to PCs when deleting a connection.

@YufengXin YufengXin self-assigned this May 29, 2024
@YufengXin YufengXin linked an issue May 29, 2024 that may be closed by this pull request
@coveralls
Copy link

coveralls commented May 29, 2024

Pull Request Test Coverage Report for Build 9288976337

Details

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 84.192%

Totals Coverage Status
Change from base Build 9210713614: 0.03%
Covered Lines: 1041
Relevant Lines: 1212

💛 - Coveralls

Copy link
Member

@sajith sajith left a comment

Choose a reason for hiding this comment

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

I have the nagging feeling that there must be a nicer way to do this, but I have not thought long enough or hard enough about what that way might be...

Comment on lines 411 to 414
def add_breakdowns_to_connection(self, connection_request: dict, breakdowns: dict):
connection_request["breakdowns"] = breakdowns

return connection_request
Copy link
Member

Choose a reason for hiding this comment

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

Can we add a docstring here? The purpose of this method is not immediately obvious... I will likely wonder what this was about after a couple of months or weeks. :-)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I agree-:). (1) the whole purpose is to associate the connect request with its computed breakdowns so sdx-controller can remember(2) I think this method might be absorbed by the pce.generate_connection_breakdown(), but I don't want to change any existing methods for . so this... when you work on unreserve_vlan workflow, feel free to change it if needed.

@YufengXin YufengXin merged commit ff09e7f into main May 29, 2024
10 checks passed
@YufengXin YufengXin deleted the 187-add-breakdowns-to-the-connection-object-as-an-attribute branch May 29, 2024 15:35
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.

Add breakdowns to the connection object as an attribute.
4 participants