Red Hat Bugzilla – Bug 896526
quantum subnet --gateway option will be applied depand on its position in cli
Last modified: 2013-01-21 11:58:28 EST
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):
Steps to Reproduce:
1. quantum subnet-create <Network ID> 126.96.36.199/24 --gateway 188.8.131.52 , gw 184.108.40.206 will be used by quantum
2.quantum subnet-create <Network ID> 220.127.116.11/24 --gateway 18.104.22.168 , gw 22.214.171.124 will be used by quantum
3. According to API --gateway_ip should be used ???
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.