amorenoz / ovsdb-mon

An OVSDB database visualization tool based on auto-generated schema bindings
Apache License 2.0
23 stars 4 forks source link

[RFE] Ability to filter the displayed results in the list output #25

Closed lewisdenny closed 2 years ago

lewisdenny commented 2 years ago

This could be useful in a large environment, rather then listing every port in a large environment then filtering the results we could like filter the results before returning the results.

For example:

>>> list Logical_Switch_Port --filter UUID=d85f590a-0e60-4c6e-a393-a564d0a10d8e UUID Name Up Enabled ExternalIDs
+--------------------------------------+----------------------------------------------+-------+---------+-------------------------------------------------------------------+
|                 UUID                 |                     NAME                     |  UP   | ENABLED |                            EXTERNALIDS                            |
+--------------------------------------+----------------------------------------------+-------+---------+-------------------------------------------------------------------+
| d85f590a-0e60-4c6e-a393-a564d0a10d8e | 4258bc9a-89d4-4e53-8213-340309de7787         | false | true    | map[neutron:cidrs:172.21.11.132/24                                |
|                                      |                                              |       |         | neutron:device_id:78db7605-c5a8-4122-97a2-85ba7ca4df6b            |
|                                      |                                              |       |         | neutron:device_owner:compute:nova                                 |
|                                      |                                              |       |         | neutron:network_name:neutron-88ab458a-4a46-4bb8-b12f-f3c1f8b8bd2c |
|                                      |                                              |       |         | neutron:port_name:                                                |
|                                      |                                              |       |         | neutron:project_id:23d9837907e347d58920de8b76162390               |
|                                      |                                              |       |         | neutron:revision_number:7                                         |
|                                      |                                              |       |         | neutron:security_group_ids:c09d7d8e-2844-4ea3-b5e8-39ce231061d1]  |
+--------------------------------------+----------------------------------------------+-------+---------+-------------------------------------------------------------------+