updating/modifying/assigning vlans, spaces, fabrics, subnets doesn't allow specifying names and lock to ID"s

Bug #1510917 reported by Andres Rodriguez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Unassigned

Bug Description

It is very difficult and very confusing to be able to update/modify/assign vlans, psaces, subnets, fabrics in the CLI because you always have to specify the ID of the item instead of being able to specify the name. This is very difficult because every single time you want to do manipulations you have to read the output and ID of the particular vlan, space, fabric, subnet before you can do anything.

It needs to support specifying names.

Related branches

Changed in maas:
importance: Undecided → Critical
milestone: none → 1.9.0
Revision history for this message
Blake Rouse (blake-rouse) wrote :

I did this for storage ao there is some good examples on how to do this both at the model level and form level. Lets try to use the same patterns there so its similar and easier to maintain.

Changed in maas:
status: New → Triaged
Revision history for this message
Mike Pontillo (mpontillo) wrote :

In the branch I have proposed, you can now specify queries to locate these objects. For example:

=== Fabrics ===
fabric := <
    <fabric-id> | <fabric-name> |
    name:<fabric-name> |
    class:<fabric-class>
>

=== Interfaces ===
interface := <
    <interface-id> | <ip-address[/prefixlen]> | <interface-name>
    fabric:<fabric> |
    fabric_class:<fabric.class> |
    ip:<ip-address> |
    mode:<unconfigured> |
    name:<interface-name> |
    hostname:<attached-node-hostname> |
    subnet:<subnet> |
    subnet_cidr:<subnet.cidr> |
    type:<physical|bond|vlan|alias|unknown> |
    vlan:<vlan> |
    vid:<vlan.vid>
>

=== Spaces ===
space := <
    <space-id> | <space-name> |
    name:<space-name> |
    subnet:<subnet>
>

=== Subnets ===
subnet := <
    <subnet-id> | <subnet-cidr> | <subnet-name> |
    cidr:<subnet-cidr> |
    fabric:<fabric> |
    id:<subnet-id> |
    interface: <interface> |
    ip:<ip-address> |
    name:<subnet-name> |
    space:<space> |
    vid:<vlan.vid> |
    vlan:<vlan>
>

=== VLANs ===
vlan := <
    <vlan-id> | <vlan-name> |
    fabric:<fabric> |
    subnet:<subnet> |
    vid:<vlan-vid> |
>

Specifiers can be chained:
    space=vlan:vid:5

Specifiers can be comma-delimited, in which case they will be ANDed together:
    space=vlan:vid:5,subnet:fabric:class:10Gbps

Changed in maas:
status: Triaged → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.