-
Notifications
You must be signed in to change notification settings - Fork 455
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
ovn-ic-ecmp refactor #3632
Conversation
pkg/ovn_ic_controller/config.go
Outdated
NodeSwitchCIDR string | ||
|
||
ClusterTCPLoadBalancer string | ||
ClusterUDPLoadBalancer string | ||
ClusterTCPSessionLoadBalancer string | ||
ClusterUDPSessionLoadBalancer string |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
func moveElements(arr []string, order int) []string { | |
func removeElement(arr []string, order int) []string { |
There was a problem hiding this comment.
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]>
Signed-off-by: Changlu Yi <[email protected]>
e469ddb
to
53aed0c
Compare
2. refactor function name Signed-off-by: Changlu Yi <[email protected]>
Signed-off-by: Changlu Yi <[email protected]>
Pull Request
What type of this PR
Examples of user facing changes:
Which issue(s) this PR fixes
Fixes #(issue-number)
WHAT
copilot:summary
copilot:poem
HOW
copilot:walkthrough