MAAS does not allow an interface to be "disconnected" and not have an associated (vlan, fabric)
Bug #1604111 reported by
Mike Pontillo
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Blake Rouse |
Bug Description
Starting with MAAS 1.9 (when the network model was expanded to support fabrics, VLANs, subnets, and spaces), each network interface modeled on MAAS must be connected to a (fabric, vlan).
Unfortunately, this requirements means that we cannot accurately model a "disconnected" network interface, where no network cable is plugged in [yet].
The MAAS model should allow the VLAN associated with an interface to be NULL.
Related branches
lp:~blake-rouse/maas/nic-no-fabric
- Mike Pontillo (community): Approve
-
Diff: 858 lines (+389/-69)16 files modifiedsrc/maasserver/api/interfaces.py (+8/-4)
src/maasserver/api/tests/test_interfaces.py (+2/-3)
src/maasserver/forms_interface.py (+22/-9)
src/maasserver/migrations/builtin/maasserver/0056_add_description_to_fabric_and_space.py (+1/-1)
src/maasserver/migrations/builtin/maasserver/0070_allow_null_vlan_on_interface.py (+23/-0)
src/maasserver/models/interface.py (+27/-16)
src/maasserver/models/node.py (+4/-0)
src/maasserver/models/signals/interfaces.py (+18/-15)
src/maasserver/models/signals/tests/test_interfaces.py (+22/-0)
src/maasserver/models/tests/test_interface.py (+31/-0)
src/maasserver/static/js/angular/controllers/node_details_networking.js (+13/-3)
src/maasserver/static/js/angular/controllers/tests/test_node_details_networking.js (+67/-0)
src/maasserver/static/partials/node-details.html (+4/-1)
src/maasserver/testing/factory.py (+16/-15)
src/maasserver/tests/test_forms_interface.py (+129/-1)
src/maasserver/websockets/handlers/node.py (+2/-1)
Changed in maas: | |
status: | Triaged → In Progress |
assignee: | nobody → Blake Rouse (blake-rouse) |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.