-
Notifications
You must be signed in to change notification settings - Fork 373
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
Auto discovery mtu #909
Auto discovery mtu #909
Conversation
@reachjainrahul, VMware has rejected your signed contributor license agreement. The merge can not proceed until the agreement has been resigned. Click here to resign the agreement. |
Thanks for your PR. The following commands are available:
These commands can only be run by members of the vmware-tanzu organization. |
b97ac7a
to
c76abd2
Compare
/test-windows-conformance |
1 similar comment
/test-windows-conformance |
/test-windows-networkpolicy |
c76abd2
to
afc49b4
Compare
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.
minor comments, changes LGTM
return i.networkConfig.DefaultMTU, nil | ||
} | ||
mtu := localIntf.MTU | ||
if mtu <= 0 { |
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.
could you add a comment to explain when this case could happen (or if it is not supposed to happen ever, but you feel like we should keep it, maybe add a comment to say that this is just defensive-programming)
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.
MTU is assigned via DHCP option. If for whatever reason, its not set, this sanity check handles the case.
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.
Also update documentation (EKS/cloud, docs/configuration.md) and yamls (antrea-agent.conf in build/yamls/base/conf/ and build/yamls/windows/base/conf/, and then "make manifest" to generate new yamls).
afc49b4
to
67aa5f4
Compare
LGTM |
67aa5f4
to
1cdc739
Compare
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.
some more nits, LGTM
Discover mtu of primary interface if defaultMTU param is not set in the antrea.yaml
1cdc739
to
d11fe51
Compare
/test-all |
Discover mtu of primary interface if defaultMTU param is not set in the antrea.yaml Signed-off-by:: Rahul Jain <rahulj@rahulj-a01.vmware.com>
Discover mtu of primary interface if defaultMTU param is not
set in the antrea.yaml