← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1405057] [NEW] Filter port-list based on security_groups associated not working

 

Public bug reported:

Sample Usecases:

1. neutron port-list --security_groups=6f3d9d9d-e84d-437c-ac40-82ce3196230c
Invalid input for operation: '6' is not an integer or uuid.

2.neutron port-list --security_groups list=true 6f3d9d9d-e84d-437c-ac40-82ce3196230c
Invalid input for operation: '6' is not an integer or uuid.

Since, security_groups associated to a port are referenced from securitygroups db table, we can just filter ports
based on security_groups directly as it works for other paramters.

Example:
neutron port-list --mac_address list=true fa:16:3e:40:2b:cc fa:16:3e:8e:32:3e
+--------------------------------------+------+-------------------+-----------------------------------------------------------------------------------+
| id                                   | name | mac_address       | fixed_ips                                                                         |
+--------------------------------------+------+-------------------+-----------------------------------------------------------------------------------+
| 1cecec78-226f-4379-b5ad-c145e2e14048 |      | fa:16:3e:40:2b:cc | {"subnet_id": "af938c1c-e2d7-47a0-954a-ec8524677486", "ip_address": "50.10.10.2"} |
| eec24494-09a8-4fa8-885d-e3fda37fe756 |      | fa:16:3e:8e:32:3e | {"subnet_id": "af938c1c-e2d7-47a0-954a-ec8524677486", "ip_address": "50.10.10.3"} |
+--------------------------------------+------+-------------------+-----------------------------------------------------------------------------------+

** Affects: neutron
     Importance: Undecided
     Assignee: Shivakumar M (shiva-m)
         Status: New


** Tags: neutron port-list security-groups

** Changed in: neutron
     Assignee: (unassigned) => Shivakumar M (shiva-m)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1405057

Title:
  Filter port-list based on security_groups associated not working

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  Sample Usecases:

  1. neutron port-list --security_groups=6f3d9d9d-e84d-437c-ac40-82ce3196230c
  Invalid input for operation: '6' is not an integer or uuid.

  2.neutron port-list --security_groups list=true 6f3d9d9d-e84d-437c-ac40-82ce3196230c
  Invalid input for operation: '6' is not an integer or uuid.

  Since, security_groups associated to a port are referenced from securitygroups db table, we can just filter ports
  based on security_groups directly as it works for other paramters.

  Example:
  neutron port-list --mac_address list=true fa:16:3e:40:2b:cc fa:16:3e:8e:32:3e
  +--------------------------------------+------+-------------------+-----------------------------------------------------------------------------------+
  | id                                   | name | mac_address       | fixed_ips                                                                         |
  +--------------------------------------+------+-------------------+-----------------------------------------------------------------------------------+
  | 1cecec78-226f-4379-b5ad-c145e2e14048 |      | fa:16:3e:40:2b:cc | {"subnet_id": "af938c1c-e2d7-47a0-954a-ec8524677486", "ip_address": "50.10.10.2"} |
  | eec24494-09a8-4fa8-885d-e3fda37fe756 |      | fa:16:3e:8e:32:3e | {"subnet_id": "af938c1c-e2d7-47a0-954a-ec8524677486", "ip_address": "50.10.10.3"} |
  +--------------------------------------+------+-------------------+-----------------------------------------------------------------------------------+

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1405057/+subscriptions


Follow ups

References