Create security rulle doen't check remote_ip_prefix

Bug #1291156 reported by shihanzhang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
In Progress
Undecided
shihanzhang

Bug Description

the API of 'security-group-rule-create' doesn't check the parameter of 'remote_ip_prefix', if you use a invalid a value, it alse success,

root@ubuntu01:~# neutron security-group-rule-create --direction ingress --ethertype IPv4 --protocol tcp --port-range-min 20 --port-range-max 30 --remote-ip-prefix 192.168.1/24 shz
Created a new security_group_rule:
+-------------------+--------------------------------------+
| Field | Value |
+-------------------+--------------------------------------+
| direction | ingress |
| ethertype | IPv4 |
| id | 9087fd12-82b4-491c-a5c6-5c7acf251f4c |
| port_range_max | 30 |
| port_range_min | 20 |
| protocol | tcp |
| remote_group_id | |
| remote_ip_prefix | 192.168.1/24 |
| security_group_id | e4a37547-c2d8-4ef6-8273-bc3253d7600a |
| tenant_id | 34fddbc22c184214b823be267837ef81 |
+-------------------+--------------------------------------+

Changed in neutron:
assignee: nobody → shihanzhang (shihanzhang)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/80136

Changed in neutron:
status: New → In Progress
Revision history for this message
Oleg Bondarev (obondarev) wrote :

It's a duplication of bug 1255338

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.