[Bug 1773151] Re: router set help is wrong/misleading
Corey Bryant
corey.bryant at canonical.com
Fri Jun 22 18:35:55 UTC 2018
Hello Amit,
Thank you for submitting this bug and making OpenStack better. It
appears that you hit this on Red Hat and reported it against Ubuntu. If
you are hitting this on Ubuntu please let me know. For now I'll mark it
as invalid. Please feel free to move it back to New if this is occurring
on Ubuntu.
Thanks,
Corey
** Changed in: python-openstackclient (Ubuntu)
Status: Confirmed => Invalid
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-openstackclient in Ubuntu.
https://bugs.launchpad.net/bugs/1773151
Title:
router set help is wrong/misleading
Status in python-openstackclient package in Ubuntu:
Invalid
Bug description:
I was updating router on mitaka redhat based openstack with the help of command as given in command help below
[root at redhat-mitaka-automation ~(keystone_admin)]# openstack help router set
usage: openstack router set [-h] [--name <name>] [--enable | --disable]
[--distributed | --centralized]
[--route destination=<subnet>,gateway=<ip-address> | --clear-routes]
<router>
Set router properties
positional arguments:
<router> Router to modify (name or ID)
optional arguments:
-h, --help show this help message and exit
--name <name> Set router name
--enable Enable router
--disable Disable router
--distributed Set router to distributed mode (disabled router only)
--centralized Set router to centralized mode (disabled router only)
--route destination=<subnet>,gateway=<ip-address>
Routes associated with the router. Repeat this option
to set multiple routes. destination: destination
subnet (in CIDR notation). gateway: nexthop IP
address.
--clear-routes Clear routes associated with the router
The command to update routeer to set static route is
openstack router set --route destination=13.13.13.0/24,gateway=12.12.12.3 router_name
but above command throws eeror as
HttpException: Bad Request
So I tried with command
neutron router-update router_name --routes type=dict list=true destination=13.13.13.0/24,nexthop=12.12.12.3
nexthop parameter is mentioned in neutronclient help and it worked.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-openstackclient/+bug/1773151/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list