← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1524661] [NEW] "neutron help net-update" shows insufficient parameter info

 

Public bug reported:

update network name can work using "neutron net-update" command, but in
"neutron help net-update", it cannot show this parameter.

Setup:
centos   liberty

Steps: 
[root@46-37 ~(keystone_admin)]# neutron help net-update
usage: neutron net-update [-h] [--request-format {json,xml}]
                          [--qos-policy QOS_POLICY | --no-qos-policy]
                          NETWORK

Update network's information.

positional arguments:
  NETWORK               ID or name of network to update.

optional arguments:
  -h, --help            show this help message and exit
  --request-format {json,xml}
                        The XML or JSON request format.
  --qos-policy QOS_POLICY
                        Attach QoS policy ID or name to the resource.
  --no-qos-policy       Detach QoS policy from the resource.

[root@46-37 ~(keystone_admin)]# neutron net-show 7c32fd53-b138-4469-a1cb-580e6bffbac7 
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | 7c32fd53-b138-4469-a1cb-580e6bffbac7 |
| mtu                       | 0                                    |
| name                      | net-chen                             |
| provider:network_type     | vxlan                                |
| provider:physical_network |                                      |
| provider:segmentation_id  | 92                                   |
| router:external           | False                                |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   |                                      |
| tenant_id                 | 5e330189111048b9a74a76eea9a469ac     |
+---------------------------+--------------------------------------+

[root@46-37 ~(keystone_admin)]# neutron net-update 7c32fd53-b138-4469-a1cb-580e6bffbac7 --name newnet
Updated network: 7c32fd53-b138-4469-a1cb-580e6bffbac7
[root@46-37 ~(keystone_admin)]# neutron net-show 7c32fd53-b138-4469-a1cb-580e6bffbac7 
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | 7c32fd53-b138-4469-a1cb-580e6bffbac7 |
| mtu                       | 0                                    |
| name                      | newnet                               |
| provider:network_type     | vxlan                                |
| provider:physical_network |                                      |
| provider:segmentation_id  | 92                                   |
| router:external           | False                                |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   |                                      |
| tenant_id                 | 5e330189111048b9a74a76eea9a469ac     |
+---------------------------+--------------------------------------+


Expected result: 
here is a good example for neutron subnet-update

[root@46-37 ~(keystone_admin)]# neutron help subnet-update
usage: neutron subnet-update [-h] [--request-format {json,xml}] [--name NAME]
                             [--gateway GATEWAY_IP | --no-gateway]
                             [--allocation-pool start=IP_ADDR,end=IP_ADDR]
                             [--host-route destination=CIDR,nexthop=IP_ADDR]
                             [--dns-nameserver DNS_NAMESERVER]
                             [--disable-dhcp] [--enable-dhcp]
                             SUBNET

Update subnet's information.

positional arguments:
  SUBNET                ID or name of subnet to update.

optional arguments:
  -h, --help            show this help message and exit
  --request-format {json,xml}
                        The XML or JSON request format.
  --name NAME           Name of this subnet.
  --gateway GATEWAY_IP  Gateway IP of this subnet.
  --no-gateway          No distribution of gateway.
  --allocation-pool start=IP_ADDR,end=IP_ADDR
                        Allocation pool IP addresses for this subnet (This
                        option can be repeated).
  --host-route destination=CIDR,nexthop=IP_ADDR
                        Additional route (This option can be repeated).
  --dns-nameserver DNS_NAMESERVER
                        DNS name server for this subnet (This option can be
                        repeated).
  --disable-dhcp        Disable DHCP for this subnet.
  --enable-dhcp         Enable DHCP for this subnet.
[root@46-37 ~(keystone_admin)]#

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1524661

Title:
  "neutron help net-update" shows insufficient parameter info

Status in neutron:
  New

Bug description:
  update network name can work using "neutron net-update" command, but
  in "neutron help net-update", it cannot show this parameter.

  Setup:
  centos   liberty

  Steps: 
  [root@46-37 ~(keystone_admin)]# neutron help net-update
  usage: neutron net-update [-h] [--request-format {json,xml}]
                            [--qos-policy QOS_POLICY | --no-qos-policy]
                            NETWORK

  Update network's information.

  positional arguments:
    NETWORK               ID or name of network to update.

  optional arguments:
    -h, --help            show this help message and exit
    --request-format {json,xml}
                          The XML or JSON request format.
    --qos-policy QOS_POLICY
                          Attach QoS policy ID or name to the resource.
    --no-qos-policy       Detach QoS policy from the resource.

  [root@46-37 ~(keystone_admin)]# neutron net-show 7c32fd53-b138-4469-a1cb-580e6bffbac7 
  +---------------------------+--------------------------------------+
  | Field                     | Value                                |
  +---------------------------+--------------------------------------+
  | admin_state_up            | True                                 |
  | id                        | 7c32fd53-b138-4469-a1cb-580e6bffbac7 |
  | mtu                       | 0                                    |
  | name                      | net-chen                             |
  | provider:network_type     | vxlan                                |
  | provider:physical_network |                                      |
  | provider:segmentation_id  | 92                                   |
  | router:external           | False                                |
  | shared                    | False                                |
  | status                    | ACTIVE                               |
  | subnets                   |                                      |
  | tenant_id                 | 5e330189111048b9a74a76eea9a469ac     |
  +---------------------------+--------------------------------------+

  [root@46-37 ~(keystone_admin)]# neutron net-update 7c32fd53-b138-4469-a1cb-580e6bffbac7 --name newnet
  Updated network: 7c32fd53-b138-4469-a1cb-580e6bffbac7
  [root@46-37 ~(keystone_admin)]# neutron net-show 7c32fd53-b138-4469-a1cb-580e6bffbac7 
  +---------------------------+--------------------------------------+
  | Field                     | Value                                |
  +---------------------------+--------------------------------------+
  | admin_state_up            | True                                 |
  | id                        | 7c32fd53-b138-4469-a1cb-580e6bffbac7 |
  | mtu                       | 0                                    |
  | name                      | newnet                               |
  | provider:network_type     | vxlan                                |
  | provider:physical_network |                                      |
  | provider:segmentation_id  | 92                                   |
  | router:external           | False                                |
  | shared                    | False                                |
  | status                    | ACTIVE                               |
  | subnets                   |                                      |
  | tenant_id                 | 5e330189111048b9a74a76eea9a469ac     |
  +---------------------------+--------------------------------------+

  
  Expected result: 
  here is a good example for neutron subnet-update

  [root@46-37 ~(keystone_admin)]# neutron help subnet-update
  usage: neutron subnet-update [-h] [--request-format {json,xml}] [--name NAME]
                               [--gateway GATEWAY_IP | --no-gateway]
                               [--allocation-pool start=IP_ADDR,end=IP_ADDR]
                               [--host-route destination=CIDR,nexthop=IP_ADDR]
                               [--dns-nameserver DNS_NAMESERVER]
                               [--disable-dhcp] [--enable-dhcp]
                               SUBNET

  Update subnet's information.

  positional arguments:
    SUBNET                ID or name of subnet to update.

  optional arguments:
    -h, --help            show this help message and exit
    --request-format {json,xml}
                          The XML or JSON request format.
    --name NAME           Name of this subnet.
    --gateway GATEWAY_IP  Gateway IP of this subnet.
    --no-gateway          No distribution of gateway.
    --allocation-pool start=IP_ADDR,end=IP_ADDR
                          Allocation pool IP addresses for this subnet (This
                          option can be repeated).
    --host-route destination=CIDR,nexthop=IP_ADDR
                          Additional route (This option can be repeated).
    --dns-nameserver DNS_NAMESERVER
                          DNS name server for this subnet (This option can be
                          repeated).
    --disable-dhcp        Disable DHCP for this subnet.
    --enable-dhcp         Enable DHCP for this subnet.
  [root@46-37 ~(keystone_admin)]#

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1524661/+subscriptions


Follow ups