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

fix: for existing nic, no need to set the port type to internal #3243

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

oilbeater
Copy link
Collaborator

@oilbeater oilbeater commented Sep 21, 2023

What type of this PR

Examples of user facing changes:

  • Bug fixes

Which issue(s) this PR fixes:

Fixes #3225

WHAT

🤖 Generated by Copilot at 52ed53a

Improve mirror port creation and configuration for OVS bridge. Use netlink package to check mirror interface existence and reduce OVS commands. Affect file pkg/daemon/ovs.go.

🤖 Generated by Copilot at 52ed53a

Sing, O Muse, of the skillful coder who devised
A better way to make the mirror port, and wisely
Used the netlink package, nl, to scan the bridge
And spare the OVS commands from needless toil and drudge.

HOW

🤖 Generated by Copilot at 52ed53a

  • Import netlink package to check for mirror network interface existence (link)
  • Modify configureGlobalMirror and configureEmptyMirror functions to skip add-port command if mirror interface already exists (link)

@oilbeater oilbeater added bug Something isn't working need backport mirror labels Sep 21, 2023
Signed-off-by: oilbeater <liumengxinfly@gmail.com>
@oilbeater oilbeater merged commit e25bd2e into master Sep 25, 2023
59 checks passed
@oilbeater oilbeater deleted the fix/mirror branch September 25, 2023 06:03
oilbeater added a commit that referenced this pull request Sep 25, 2023
Signed-off-by: oilbeater <liumengxinfly@gmail.com>
oilbeater added a commit that referenced this pull request Sep 25, 2023
Signed-off-by: oilbeater <liumengxinfly@gmail.com>
wenwenxiong pushed a commit to wenwenxiong/kube-ovn that referenced this pull request Sep 28, 2023
…ovn#3243)

Signed-off-by: oilbeater <liumengxinfly@gmail.com>
Signed-off-by: xiongww <xiongww@chinatelecom.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mirror need backport
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--mirror-iface doesn't take effect
2 participants