-
Notifications
You must be signed in to change notification settings - Fork 27
Add skip for interfaces in unknown state to entrypoint script #185
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
Add skip for interfaces in unknown state to entrypoint script #185
Conversation
pkg/azurelustreplugin/entrypoint.sh
Outdated
| elif [[ "$interface_info" =~ 'link/ether' ]]; then | ||
| echo "$(date -u) Including ethernet interface: ${interface}" | ||
| ethernet_interfaces+=("$interface") | ||
| elif [[ "$interface_info" =~ 'UNKNOWN' ]]; then |
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.
Is there a list of all (common) kinds of interfaces that we should consult and also exclude? Token Ring, ATM, Sneakernet?
pkg/azurelustreplugin/entrypoint.sh
Outdated
| ethernet_interfaces+=("$interface") | ||
| elif [[ "$interface_info" =~ 'UNKNOWN' ]]; then | ||
| echo "$(date -u) Not adding state unknown interface: ${interface}" | ||
| continue |
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.
Remove the continues
52ecd88 to
73e0b74
Compare
73e0b74 to
6f8f102
Compare
dabradley
left a comment
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.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dabradley, t-mialve The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Skips interfaces that are in an UNKNOWN state. If these aren't skipped it may cause extra client IPs to be added.
Which issue(s) this PR fixes:
Fixes #
Requirements:
Special notes for your reviewer:
Release note: