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

NAS-128439 / 24.10 / Send interface events when commit/rollback for network is performed #13850

Closed
wants to merge 2 commits into from

Conversation

Qubad786
Copy link
Contributor

@Qubad786 Qubad786 commented Jun 6, 2024

Context

It was requested that we send events when commit/rollback for network is performed. Also it was requested that we provide not just the id of the interface in this case but the complete interface details so UI would not have to make a subsequent call.

Proposed Solution

Requested cases have been addressed in following ways:

  1. For added/removed/changed events, we try to send the complete payload in events if it is there for CRUD services
  2. On commit/rollback of network changes, we isolate interfaces which were changed/removed/added and send their appropriate events in that case

@Qubad786 Qubad786 requested a review from a team June 6, 2024 13:39
@bugclerk bugclerk changed the title Send interface events when commit/rollback for network is performed NAS-128439 / 24.10 / Send interface events when commit/rollback for network is performed Jun 6, 2024
@bugclerk
Copy link
Contributor

bugclerk commented Jun 6, 2024

return get_iface_name('alias_interface', item)


def find_interface_changes(original_datastores: dict, current_datastores: dict) -> typing.List[str]:
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm sorry but no. This function is insanely complex. I don't want to make our network API any more complex than what it already is. This function is unmanageable, frankly. If this is the complexity that is required to send changed events, then we need to not send changed events.

@Qubad786 Qubad786 closed this Jun 6, 2024
@Qubad786 Qubad786 deleted the NAS-128439 branch June 6, 2024 18:04
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.

3 participants