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

Add option to order device startup in ifup #66

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

noc0lour
Copy link

This allows to safely configure bonds, VLAN and bridges on top without having to fiddle with names.
This can be done by specifying order in any device stanza which will then evaluate to the
smallest order set in any stanza for that device. Parameter order will evaluate to 99 if it is not set
for that device.

The resulting files are then named device-$order_$devicename.

Would be great to have that functionality upstream.

On top this adds a default vars/ file for debian-9, which is of course optional.

@arBmind
Copy link
Member

arBmind commented Feb 14, 2018

hi @noc0lour,
Thank you for your pull request. It looks good.

One question: Why device-${order}_${devicename} and not ${order}_device-${devicename}? - I do not really remember why we added the device_ prefix.

@noc0lour
Copy link
Author

No specific reason, I can change that. Is ifupdown/networking expecting a special name format in interfaces.d with device prefixed?

@arBmind
Copy link
Member

arBmind commented Feb 25, 2018

@noc0lour - as far as I interpret the http://manpages.ubuntu.com/manpages/xenial/man5/interfaces.5.html - it includes all files of a directory.

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.

2 participants