Bug 896526

Summary: quantum subnet --gateway option will be applied depand on its position in cli
Product: Red Hat OpenStack Reporter: Ofer Blaut <oblaut>
Component: openstack-quantumAssignee: RHOS Maint <rhos-maint>
Status: CLOSED NOTABUG QA Contact: Ofer Blaut <oblaut>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.0 (Folsom)CC: chrisw, gkotton, jrd, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
python-quantum-2012.2.1-3.el6ost.noarch openstack-quantum-openvswitch-2012.2.1-3.el6ost.noarch python-quantumclient-2.1.10-1.el6ost.noarch openstack-quantum-2012.2.1-3.el6ost.noarch
Last Closed: 2013-01-21 16:58:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
subnet with gateway position none

Description Ofer Blaut 2013-01-17 13:46:18 UTC
Created attachment 680209 [details]
subnet with gateway position

Description of problem:

In order to configure --gateway different than default ,
user  will use --gateway option.

When --gateway is used before CIDR in CLI it works,
When --gateway is used AFTER CIDR in CLI it DOESN'T work.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. quantum subnet-create  <Network ID> 27.1.1.0/24 --gateway 27.1.1.15 , gw 27.1.1.1 will be used by quantum 
2.quantum subnet-create  <Network ID> 26.1.1.0/24 --gateway 26.1.1.15 , gw 26.1.1.1 will be used by quantum 
3. According to API --gateway_ip should be used ???

example attached   
Actual results:


Expected results:


Additional info:

Comment 2 Gary Kotton 2013-01-21 16:58:28 UTC
This is not a bug. Currently the CLI works in the following way: there are arguments that appear before mandatory parameters, for example the gateway that you hav mentioned above. Then there are parameters that can appear after the mandatory parameters. These for example are the actual values that are used internall - for example gateway_ip (http://wiki.openstack.org/QuantumV2APIIntro#Subnet)
It may be worthwhile opening a documentation bug on this issue.