[Bug 1773151] [NEW] router set help is wrong/misleading

Kiran Pawar 1773151 at bugs.launchpad.net
Thu May 24 11:33:25 UTC 2018


Public bug reported:

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.

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

-- 
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