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

improve network configuration detection #530

Merged
merged 1 commit into from Sep 25, 2015
Merged

improve network configuration detection #530

merged 1 commit into from Sep 25, 2015

Conversation

kaio33
Copy link

@kaio33 kaio33 commented Jan 20, 2015

The changed 31_network_devies.sh does two things different than before:

  1. It doesn't depend on a name based guess for identifing a network device as physical.
    It now gets the list of all network devices from /sys/class/net, and 'subtracts' the list of virtual network devices from /sys/devices/virtual/net.

  2. It supports VLANs ontop of a bonding interface as well as bonding over multiple VLAN interfaces.
    Before it brings up a VLAN, it checks whether its parent device is a bonding interface. If yes, the parent is configured first. Same goes for bonding interfaces.

I hope I didn't introduce any regressions or broke something... :-/

@gdha gdha self-assigned this Jan 25, 2015
@gdha gdha added this to the Rear v1.18 milestone Feb 3, 2015
@gdha
Copy link
Member

gdha commented Sep 21, 2015

@schlomo what do you think of this pull request? After reviewing this I think it can work as delivered (not tested yet).

@schlomo
Copy link
Member

schlomo commented Sep 21, 2015

Wow! Cool thing and absolutely good idea to stop depending on the interface names. Maybe it would even help #655 (does it?)

My 2 ct:

  • Use $() instead of backticks
  • Maybe put functions into lib/*.sh?
  • From a software development perspective: The functions use global variables and parameters, that can easily go wrong.

Yes, I am in favour of this code if we can establish that it does not break a supported OS / OS version.

gdha added a commit that referenced this pull request Sep 25, 2015
improve network configuration detection - be careful - testing is very much appreciated on DEV environments.
DO NOT USE this code in *production* yet!!!!
@gdha gdha merged commit fd6018a into rear:master Sep 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants