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

controller: fix DHCP MTU when the default network mode is underlay #2941

Merged
merged 1 commit into from
Jun 14, 2023

Conversation

zhangzujian
Copy link
Member

@zhangzujian zhangzujian commented Jun 14, 2023

What type of this PR

  • Bug fixes

Which issue(s) this PR fixes:

Fixes #2930

WHAT

🤖 Generated by Copilot at 6616b9e

Refactor subnet controller and add default MTU constant. This change simplifies the code for updating DHCP options and ensures a consistent MTU value across the network.

🤖 Generated by Copilot at 6616b9e

Oh we are the coders of the util package
We make the network interfaces run so smooth
We use the DefaultMTU constant value
And we refactor the code with every pull

HOW

🤖 Generated by Copilot at 6616b9e

  • Refactor updateSubnetDHCPOption function to use DefaultMTU constant and handle vlan network type (link)
  • Add DefaultMTU constant to util package to store the default network interface MTU value (link)
  • Simplify dhcpOptionsUUIDs variable declaration using short syntax in subnet.go (link)

@zhangzujian zhangzujian added the bug Something isn't working label Jun 14, 2023
@zhangzujian zhangzujian marked this pull request as ready for review June 14, 2023 08:03
@zhangzujian zhangzujian requested a review from zbb88888 June 14, 2023 08:08
@zhangzujian zhangzujian merged commit 88f706e into kubeovn:master Jun 14, 2023
@zhangzujian zhangzujian deleted the fix-mtu branch June 14, 2023 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need backport
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants