For example:
1. Admin user:
nicira@utu1604template:~$ openstack network set --tag 'neutron rocks' public nicira@utu1604template:~$ neutron net-show public neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead. +---------------------------+--------------------------------------+ | Field | Value | +---------------------------+--------------------------------------+ | admin_state_up | True | | availability_zone_hints | | | availability_zones | defaultv3 | | created_at | 2018-01-14T07:47:20Z | | description | | | dns_domain | | | id | 354cbac7-3886-4931-9e1c-b26e9bff0fab | | ipv4_address_scope | | | ipv6_address_scope | | | is_default | False | | name | public | | port_security_enabled | True | | project_id | ace8a4bfe20848439f403f72329c0092 | | provider:network_type | l3_ext | | provider:physical_network | 00f71468-d993-419b-988c-faa34fbed472 | | provider:segmentation_id | 0 | | revision_number | 6 | | router:external | True | | shared | False | | status | ACTIVE | | subnets | ac25bb28-3020-477e-8c47-3aa97b679a56 | | tags | neutron rocks | | tenant_id | ace8a4bfe20848439f403f72329c0092 | | updated_at | 2018-01-16T06:17:34Z | +---------------------------+--------------------------------------+ nicira@utu1604template:~$
2. Tenant user: nicira@utu1604template:~$ neutron net-show public neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead. +-------------------------+--------------------------------------+ | Field | Value | +-------------------------+--------------------------------------+ | admin_state_up | True | | availability_zone_hints | | | availability_zones | defaultv3 | | created_at | 2018-01-14T07:47:20Z | | description | | | dns_domain | | | id | 354cbac7-3886-4931-9e1c-b26e9bff0fab | | ipv4_address_scope | | | ipv6_address_scope | | | is_default | False | | name | public | | port_security_enabled | True | | project_id | ace8a4bfe20848439f403f72329c0092 | | revision_number | 6 | | router:external | True | | shared | False | | status | ACTIVE | | subnets | ac25bb28-3020-477e-8c47-3aa97b679a56 | | tags | neutron rocks | | tenant_id | ace8a4bfe20848439f403f72329c0092 | | updated_at | 2018-01-16T06:17:34Z | +-------------------------+--------------------------------------+ nicira@utu1604template:~$
So one could filter on 'neutron rocks'.
For example:
1. Admin user:
nicira@ utu1604template :~$ openstack network set --tag 'neutron rocks' public utu1604template :~$ neutron net-show public ------- ------- ------- +------ ------- ------- ------- ------- ----+ ------- ------- ------- +------ ------- ------- ------- ------- ----+ zone_hints | | 14T07:47: 20Z | 3886-4931- 9e1c-b26e9bff0f ab | enabled | True | 39f403f72329c00 92 | network_ type | l3_ext | physical_ network | 00f71468- d993-419b- 988c-faa34fbed4 72 | segmentation_ id | 0 | 3020-477e- 8c47-3aa97b679a 56 | 39f403f72329c00 92 | 16T06:17: 34Z | ------- ------- ------- +------ ------- ------- ------- ------- ----+ utu1604template :~$
nicira@
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+------
| Field | Value |
+------
| admin_state_up | True |
| availability_
| availability_zones | defaultv3 |
| created_at | 2018-01-
| description | |
| dns_domain | |
| id | 354cbac7-
| ipv4_address_scope | |
| ipv6_address_scope | |
| is_default | False |
| name | public |
| port_security_
| project_id | ace8a4bfe208484
| provider:
| provider:
| provider:
| revision_number | 6 |
| router:external | True |
| shared | False |
| status | ACTIVE |
| subnets | ac25bb28-
| tags | neutron rocks |
| tenant_id | ace8a4bfe208484
| updated_at | 2018-01-
+------
nicira@
2. Tenant user: utu1604template :~$ neutron net-show public ------- ------- -----+- ------- ------- ------- ------- ------- --+ ------- ------- -----+- ------- ------- ------- ------- ------- --+ zone_hints | | 14T07:47: 20Z | 3886-4931- 9e1c-b26e9bff0f ab | enabled | True | 39f403f72329c00 92 | 3020-477e- 8c47-3aa97b679a 56 | 39f403f72329c00 92 | 16T06:17: 34Z | ------- ------- -----+- ------- ------- ------- ------- ------- --+ utu1604template :~$
nicira@
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+------
| Field | Value |
+------
| admin_state_up | True |
| availability_
| availability_zones | defaultv3 |
| created_at | 2018-01-
| description | |
| dns_domain | |
| id | 354cbac7-
| ipv4_address_scope | |
| ipv6_address_scope | |
| is_default | False |
| name | public |
| port_security_
| project_id | ace8a4bfe208484
| revision_number | 6 |
| router:external | True |
| shared | False |
| status | ACTIVE |
| subnets | ac25bb28-
| tags | neutron rocks |
| tenant_id | ace8a4bfe208484
| updated_at | 2018-01-
+------
nicira@
So one could filter on 'neutron rocks'.