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

ovn-ic-ecmp refactor #3632

Merged
merged 11 commits into from
Jan 29, 2024
Merged

ovn-ic-ecmp refactor #3632

merged 11 commits into from
Jan 29, 2024

Conversation

changluyi
Copy link
Collaborator

Pull Request

What type of this PR

Examples of user facing changes:

  • Features
  • Bug fixes
  • Docs
  • Tests

Which issue(s) this PR fixes

Fixes #(issue-number)

WHAT

copilot:summary

copilot:poem

HOW

copilot:walkthrough

@changluyi changluyi added feature New network feature need backport labels Jan 19, 2024
@changluyi changluyi requested a review from oilbeater January 19, 2024 05:31
Comment on lines 31 to 36
NodeSwitchCIDR string

ClusterTCPLoadBalancer string
ClusterUDPLoadBalancer string
ClusterTCPSessionLoadBalancer string
ClusterUDPSessionLoadBalancer string
Copy link
Collaborator

Choose a reason for hiding this comment

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

These fields are not used

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

1

@@ -115,6 +123,15 @@ func (c LegacyClient) DestroyRoutes(uuids []string) {
}
}

func (c LegacyClient) DestroyPortBindings(uuids []string) {
for _, uuid := range uuids {
if err := c.DestroyTableWithUUID(uuid, "Port_Binding"); err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

should return err when failed

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

1

func (c *Controller) getTSName(index int) string {
if index == 0 {
return util.InterconnectionSwitch
func moveElements(arr []string, order int) []string {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
func moveElements(arr []string, order int) []string {
func removeElement(arr []string, order int) []string {

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it renamed it to generateNewOrdergwNodes

Signed-off-by: changluyi <[email protected]>

Signed-off-by: Changlu Yi <[email protected]>
Signed-off-by: Changlu Yi <[email protected]>
Signed-off-by: Changlu Yi <[email protected]>
Signed-off-by: Changlu Yi <[email protected]>
Signed-off-by: Changlu Yi <[email protected]>
2. add ovn-ic-controller.log to hostpath

Signed-off-by: Changlu Yi <[email protected]>
Signed-off-by: Changlu Yi <[email protected]>
Signed-off-by: Changlu Yi <[email protected]>
@changluyi changluyi force-pushed the ovn-ic-ecmp-enhance-master branch from e469ddb to 53aed0c Compare January 25, 2024 05:41
2. refactor function name

Signed-off-by: Changlu Yi <[email protected]>
@changluyi changluyi merged commit 8f2cef0 into master Jan 29, 2024
60 checks passed
@changluyi changluyi deleted the ovn-ic-ecmp-enhance-master branch January 29, 2024 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New network feature need backport
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants