Public bug reported:

I was updating router on mitaka redhat based openstack with the help of command 
as given in command help below
[root@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.

** Affects: python-openstackclient (Ubuntu)
     Importance: Undecided
     Assignee: AMIT KUMAR (maurya0092)
         Status: Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1773151

Title:
  router set help is wrong/misleading

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-openstackclient/+bug/1773151/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to