fwaas: " firewall policy insert firewall rule " cli should not accept the same firewall rule which is going to insert in the insert-before/after field
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Low
|
Koteswara Rao Kelam |
Bug Description
DESCRIPTION:
neutron firewall-
Steps to Reproduce:
1. create a firewall rule r1
2. create a firewall policy and insert r1 in to the firewall policy
3. create a firwall rule r2 and insert in to firewall policy specifuing inser before and insert after option as r2 itself
Actual Results:
r2 is attached in the firewall policy with out throwing any error
root@IGA-OSC:~# fwpi p1 --firewall-rule r4 --insert-before r4 --insert-after r4
Inserted firewall rule in firewall policy p1
root@IGA-OSC:~# fwpl
+------
| id | name | firewall_rules |
+------
| 8648869f-
| | | 3115e8c4-
| | | 3593c12f-
| | | f45fd19a-
+------
root@IGA-OSC:~# fwpr p1 --firewall-rule r4
Removed firewall rule from firewall policy p1
root@IGA-OSC:~# fwpi p1 --firewall-rule r4 --insert-before r4 --insert-after r2
Inserted firewall rule in firewall policy p1
root@IGA-OSC:~# fwpl
+------
| id | name | firewall_rules |
+------
| 8648869f-
| | | 3115e8c4-
| | | 3593c12f-
| | | f45fd19a-
+------
root@IGA-OSC:~# fwrs r4
+------
| Field | Value |
+------
| action | deny |
| description | |
| destination_
| destination_port | |
| enabled | True |
| firewall_policy_id | 8648869f-
| id | 0aabafe1-
| ip_version | 4 |
| name | r4 |
| position | 1 |
| protocol | icmp |
| shared | False |
| source_ip_address | |
| source_port | |
| tenant_id | d9481c57a11c46e
+------
Expected Results:
It should throw error since r2 is no where attached in the firewall policy
Changed in neutron: | |
assignee: | nobody → Koteswara Rao Kelam (koti-kelam) |
Changed in neutron: | |
importance: | Undecided → Low |
tags: | added: fwaas |
Changed in neutron: | |
milestone: | none → juno-3 |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | juno-3 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/100560
Review: https:/