[Bug 1773151] Re: router set help is wrong/misleading
AMIT KUMAR
MAURYA0092 at GMAIL.COM
Thu May 24 11:33:58 UTC 2018
** Changed in: python-openstackclient (Ubuntu)
Status: New => Confirmed
** Changed in: python-openstackclient (Ubuntu)
Assignee: (unassigned) => AMIT KUMAR (maurya0092)
--
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:
Confirmed
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