-
Notifications
You must be signed in to change notification settings - Fork 16
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
Why is 'name' attribute required? #7
Comments
Hi, are you sure an interface can be unamed ? What's your use case ? I'll check the documentation this weekend. About the PR, I've opened an issue , let's wait a few days to see if its creator wants to join in. Thanks ! |
Hi, There's no "use case". It's simply that's the first time I see a "name" parameter on a /etc/network/interfaces setup on Debian. For example, on any server taken randomly:
If I load this setup with debinterface it works correctly, but automagically creates a 'name' attribute on write, which I think it's harmless but wasn't previously on the interfaces file. I did't take it into account until I hit the bug that was creating 'unknown' attributes again and again. I think an easy way to make it not mandatory it's to simply check if the attribute was present on loading the configuration file, and simply not save it if not present. Also, removing the mandatory flag on the attribute so the user can remove it before saving. You can maintain the generation of the attribute if it's needed by the rest of the package so nothing gets broken. If you want to consider this, I can try to send you a PR (but that would be my first PR, so no promises :-) ) |
Hum this is a bug, there should not be any "name" parameter written, nor /* On Thu, Nov 10, 2016 at 10:51 AM, underdpt [email protected] wrote:
|
Hi, Also, would you be willing to checkout the devel branch and try again ? If it does not work, could you paste me a complete example, with the code you use and the output ? Thanks ! |
@underdpt did you have the time to checkout the dev branch ? |
I'm sorry i've been out for a few weeks and missed this. I'll try it on next weekend and report here. |
No problem, thanks you !
…On Mon, 12 Dec 2016, 08:17 underdpt, ***@***.***> wrote:
I'm sorry i've been out for a few weeks and missed this. I'll try it on
next weekend and report here.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA-fUYD-320KnPpVLrPt9i0QhslJOQJQks5rHPTygaJpZM4KtdJV>
.
|
Hi,
I don't know why attribute 'name' is required. It's not mandatory on the configuration file.
Also, please take a look at this pull request from the main repo:
name ended up as a unknown option due to not being part of the if/elif block.
The text was updated successfully, but these errors were encountered: