Merge lp:~ltrager/maas/prevent_assigning_ip_to_bonded_interface into lp:~maas-committers/maas/trunk
Proposed by
Lee Trager
Status: | Merged |
---|---|
Approved by: | Lee Trager |
Approved revision: | no longer in the source branch. |
Merged at revision: | 4472 |
Proposed branch: | lp:~ltrager/maas/prevent_assigning_ip_to_bonded_interface |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
63 lines (+34/-2) 2 files modified
src/maasserver/forms_interface_link.py (+11/-2) src/maasserver/tests/test_forms_interface_link.py (+23/-0) |
To merge this branch: | bzr merge lp:~ltrager/maas/prevent_assigning_ip_to_bonded_interface |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Blake Rouse (community) | Approve | ||
Review via email: mp+276815@code.launchpad.net |
Commit message
Don't allow linking interfaces when they are in a bond
Description of the change
Blake was right this morning. We were properly resetting interfaces when they were added to a new bond but still allowed the user to link an interface which is part of a bond to a subnet. This patch prevents linking an interface if its part of a bond. I wasn't sure if there were other interface sets which we should check for so I'm only checking for bonds right now.
To post a comment you must log in.
Looks good. Doing it only on bonds is correct all other interface modes will allow this.