Error not thrown when duplicate options are present on CLI
Bug #1327071 reported by
Rajkumar
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-neutronclient |
Won't Fix
|
Low
|
Unassigned |
Bug Description
If a neutron CLI is executed with duplicate KNOWN parameters, it does not give a Duplicate Option Error.
It gives a Duplicate Option Error if the duplicate Parameters are ´Extra Arguments´
Steps to Reproduce:
(a) create firewall rule by specifying the protocol field two times.
(b) create a port with vnic-type direct and vnic-type normal.
(c) create a network (net-create) specifying 2 tenant ids.
Actual Results:
http://
This is true not only for firewall, but for net-create/
Changed in neutron: | |
assignee: | nobody → Eugene Nikanorov (enikanorov) |
tags: | added: fwaas |
Changed in neutron: | |
assignee: | Eugene Nikanorov (enikanorov) → Koteswara Rao Kelam (koti-kelam) |
tags: | added: api |
Changed in neutron: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in neutron: | |
status: | Confirmed → In Progress |
Changed in neutron: | |
assignee: | nobody → Reedip (reedip-banerjee) |
Changed in neutron: | |
status: | Opinion → Incomplete |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in python-neutronclient: | |
status: | Confirmed → In Progress |
tags: | removed: api fwaas |
To post a comment you must log in.
All neutron "create" commands are taking last value if user provides duplicate options. icega-osc: /usr/share/ pyshared# neutron subnet-create net3 4.4.4.0/24 --name sub11 --name sub22 ------- -----+- ------- ------- ------- ------- ------- ------+ ------- -----+- ------- ------- ------- ------- ------- ------+ a3b6-4f77- 9dc5-8ce2fbc243 78 | <<<<<<< <<<<<<< <<< Took last duplicate value fc27-466a- a46e-fd9f0db798 54 | 9aa00a3c58f82bc 1f | ------- -----+- ------- ------- ------- ------- ------- ------+
root@koti-
Created a new subnet:
+------
| Field | Value |
+------
| allocation_pools | {"start": "4.4.4.2", "end": "4.4.4.254"} |
| cidr | 4.4.4.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 4.4.4.1 |
| host_routes | |
| id | ea1adf4b-
| ip_version | 4 |
| name | sub22 |<<<<<<
| network_id | 6be544d1-
| tenant_id | 3824f7b2eb6448b
+------
But for neutron "update" commands, ERROR is thrown for duplicate options. icega-osc: /usr/share/ pyshared# neutron subnet-update sub22 --name sub11 --name sub22
root@koti-
Duplicated options --name sub11 --name sub22
Same thing should happen for firewall rule create and update. To achieve this I modified firewall- rule-update code to throw "Duplicated options" error.