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: Enhance default interface detection logic #326

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

vvhuang-ll
Copy link
Contributor

Solution:

  • Updated 'LookupDefaultIfaceName' to support additional naming conventions such as 'ens[0-9]+.*' and 'eth[0-9]+'.

Related Issue:
Fixes the error: 'cannot lookup default host interface, please manually specify it via --calico-host-interface'.
#322

Test plan:

  • Tested with interfaces named 'ens162', 'ens192', 'eth0', and 'lo'.
    "

@CLAassistant
Copy link

CLAassistant commented Dec 10, 2024

CLA assistant check
All committers have signed the CLA.

- Updated 'LookupDefaultIfaceName' to support additional naming conventions:
  - Added support for interfaces like 'ens[0-9]+.*' and 'eth[0-9]+'.
@vvhuang-ll vvhuang-ll force-pushed the fix/default-interface-detection branch from 90ad22e to 80d4412 Compare December 10, 2024 10:00
@Lyt99
Copy link
Collaborator

Lyt99 commented Dec 11, 2024

Hi, thank you for your contribution!

LGTM, I'll run test first, it will get merged when all tests passed.

@Lyt99 Lyt99 self-requested a review December 11, 2024 06:26
@Lyt99 Lyt99 merged commit 0caffc7 into alibaba:main Dec 11, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants