Merge lp:~mpontillo/curtin/fix-improper-bond-parameters-bug-1588547 into lp:~curtin-dev/curtin/trunk
| Status: | Merged |
|---|---|
| Merged at revision: | 390 |
| Proposed branch: | lp:~mpontillo/curtin/fix-improper-bond-parameters-bug-1588547 |
| Merge into: | lp:~curtin-dev/curtin/trunk |
| Diff against target: |
71 lines (+16/-4) 3 files modified
curtin/net/__init__.py (+10/-3) examples/tests/bonding_network.yaml (+2/-0) tests/unittests/test_net.py (+4/-1) |
| To merge this branch: | bzr merge lp:~mpontillo/curtin/fix-improper-bond-parameters-bug-1588547 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Ryan Harper | 2016-06-03 | Approve on 2016-06-03 | |
|
Review via email:
|
|||
This proposal supersedes a proposal from 2016-06-03.
Commit Message
Don't add additional parameters to alias interfaces.
| Mike Pontillo (mpontillo) wrote : | # |
| Ryan Harper (raharper) wrote : | # |
This looks good. Comments below, mostly would like to re-use the existing bonding config as this will automatically get validated in unittest and in vmtests if you update the current bonding_
| Mike Pontillo (mpontillo) wrote : | # |
Do the vmtests need to change as well? I only ran the unit tests when I did the fix.
| Mike Pontillo (mpontillo) wrote : | # |
Thanks for the review; some replies below.
| Ryan Harper (raharper) wrote : | # |
On Fri, Jun 3, 2016 at 2:44 PM, Mike Pontillo <email address hidden>
wrote:
> Thanks for the review; some replies below.
>
> Diff comments:
>
> > === modified file 'curtin/
> > --- curtin/
> > +++ curtin/
> > @@ -331,7 +331,12 @@
> >
> >
> > # TODO: switch to valid_map for attrs
> > -def iface_add_
> > +def iface_add_
> > + # If the index is non-zero, this is an alias interface. Alias
> interfaces
> > + # represent additional interface addresses, and cannot have
> additional
> > + # attributes. So if this is an alias, stop right here.
>
> Well, ifupdown doesn't do much in the way of model validation. ;-) An
> alias is really just a (deprecated, I think) way to add more addresses to
> an interface. (that is to say, ifupdown may well allow them, I can't think
> of any cases where that isn't arguably a bug in ifupdown.)
>
> https:/
>
>
It's probably worth supplying what the preferred eni should look like;
I'm certainly no bonding expert but attempted to apply formatting as
suggested
by the ifenslave documentation.
Ryan
| Ryan Harper (raharper) wrote : | # |
Looks good. I'll handle any errors during the vmtest run.

Note that this change also removed the 'mtu' output from the alias interface on another test case. (I don't think it would have any effect anyway; setting the MTU on an alias just sets it on the parent.)