Comment 2 for bug 1510917

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