Public bug reported:

In Mitaka,
The 'router:external' argument is missing in the help message of command 
'net-create'.

However,creating a network specied by '--router:external' is ok,so it
seems that the '--router:external' argument is forgotten in Mitaka
Release.

[root@localhost devstack]# neutron help net-create
usage: neutron net-create [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN]
                          [--max-width <integer>] [--noindent]
                          [--prefix PREFIX] [--request-format {json}]
                          [--tenant-id TENANT_ID] [--admin-state-down]
                          [--shared] [--provider:network_type <network_type>]
                          [--provider:physical_network <physical_network_name>]
                          [--provider:segmentation_id <segmentation_id>]
                          [--vlan-transparent {True,False}]
                          [--description DESCRIPTION]
                          [--qos-policy QOS_POLICY]
                          [--availability-zone-hint AVAILABILITY_ZONE]
                          [--dns-domain DNS_DOMAIN]
                          NAME

Create a network for a given tenant.

positional arguments:
  NAME                  Name of network to create.

optional arguments:
  -h, --help            show this help message and exit
  --request-format {json}
                        DEPRECATED! Only JSON request format is supported.
  --tenant-id TENANT_ID
                        The owner tenant ID.
  --admin-state-down    Set admin state up to false.
  --shared              Set the network as shared.
  --provider:network_type <network_type>
                        The physical mechanism by which the virtual network is
                        implemented.
  --provider:physical_network <physical_network_name>
                        Name of the physical network over which the virtual
                        network is implemented.
  --provider:segmentation_id <segmentation_id>
                        VLAN ID for VLAN networks or tunnel-id for GRE/VXLAN
                        networks.
  --vlan-transparent {True,False}
                        Create a vlan transparent network.
  --description DESCRIPTION
                        Description of network.
  --qos-policy QOS_POLICY
                        Attach QoS policy ID or name to the resource.
  --availability-zone-hint AVAILABILITY_ZONE
                        Availability Zone for the network (requires
                        availability zone extension, this option can be
                        repeated).
  --dns-domain DNS_DOMAIN
                        Assign DNS domain to the network (requires DNS
                        integration extension)

output formatters:
  output formatter options

  -f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml}
                        the output format, defaults to table
  -c COLUMN, --column COLUMN
                        specify the column(s) to include, can be repeated

table formatter:
  --max-width <integer>
                        Maximum display width, 0 to disable

json formatter:
  --noindent            whether to disable indenting the JSON

shell formatter:
  a format a UNIX shell can parse (variable="value")

  --prefix PREFIX       add a prefix to all variable names
[root@localhost devstack]# 

[root@localhost devstack]# neutron net-create net_test --shared 
--router:external
Created a new network:
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| availability_zone_hints   |                                      |
| availability_zones        |                                      |
| created_at                | 2016-06-22T04:50:38                  |
| description               |                                      |
| id                        | be6ae072-3a39-4aa5-a180-79e2c0673db1 |
| ipv4_address_scope        |                                      |
| ipv6_address_scope        |                                      |
| is_default                | False                                |
| mtu                       | 1450                                 |
| name                      | net_test                             |
| port_security_enabled     | True                                 |
| provider:network_type     | vxlan                                |
| provider:physical_network |                                      |
| provider:segmentation_id  | 1050                                 |
| router:external           | True                                 |
| shared                    | True                                 |
| status                    | ACTIVE                               |
| subnets                   |                                      |
| tags                      |                                      |
| tenant_id                 | d692c40b9bd74af38361d855bebb60ac     |
| updated_at                | 2016-06-22T04:50:39                  |
+---------------------------+--------------------------------------+
[root@localhost devstack]# 

In Kilo,'router:external 'argument existed in the help msg of 'net-
create' command;


[root@SBCRRack3Shelf1Slot11 ~(keystone_admin)]# neutron help net-create
usage: neutron net-create [-h] [-f {shell,table,value}] [-c COLUMN]
                          [--max-width <integer>] [--prefix PREFIX]
                          [--request-format {json,xml}]
                          [--tenant-id TENANT_ID] [--admin-state-down]
                          [--shared] 
                          [--router:external]
                          [--provider:network_type <network_type>]
                          [--provider:physical_network <physical_network_name>]
                          [--provider:segmentation_id <segmentation_id>]
                          [--vlan-transparent {True,False}]
                          NAME

Create a network for a given tenant.

positional arguments:
  NAME                  Name of network to create.

optional arguments:
  -h, --help            show this help message and exit
  --request-format {json,xml}
                        The XML or JSON request format.
  --tenant-id TENANT_ID
                        The owner tenant ID.
  --admin-state-down    Set admin state up to false.
  --shared              Set the network as shared.
  --router:external     Set network as external, it is only available for
                        admin
  --provider:network_type <network_type>
                        The physical mechanism by which the virtual network is
                        implemented.
  --provider:physical_network <physical_network_name>
                        Name of the physical network over which the virtual
                        network is implemented.
  --provider:segmentation_id <segmentation_id>
                        VLAN ID for VLAN networks or tunnel-id for GRE/VXLAN
                        networks.
  --vlan-transparent {True,False}
                        Create a vlan transparent network.

output formatters:
  output formatter options

  -f {shell,table,value}, --format {shell,table,value}
                        the output format, defaults to table
  -c COLUMN, --column COLUMN
                        specify the column(s) to include, can be repeated

table formatter:
  --max-width <integer>
                        Maximum display width, 0 to disable

shell formatter:
  a format a UNIX shell can parse (variable="value")

  --prefix PREFIX       add a prefix to all variable names
[root@SBCRRack3Shelf1Slot11 ~(keystone_admin)]#

** Affects: neutron
     Importance: Undecided
     Assignee: xiewj (36429515-3)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => xiewj (36429515-3)

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

Title:
  The 'router:external' argument is missing in the help message of
  command 'net-create'.

Status in neutron:
  New

Bug description:
  In Mitaka,
  The 'router:external' argument is missing in the help message of command 
'net-create'.

  However,creating a network specied by '--router:external' is ok,so it
  seems that the '--router:external' argument is forgotten in Mitaka
  Release.

  [root@localhost devstack]# neutron help net-create
  usage: neutron net-create [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN]
                            [--max-width <integer>] [--noindent]
                            [--prefix PREFIX] [--request-format {json}]
                            [--tenant-id TENANT_ID] [--admin-state-down]
                            [--shared] [--provider:network_type <network_type>]
                            [--provider:physical_network 
<physical_network_name>]
                            [--provider:segmentation_id <segmentation_id>]
                            [--vlan-transparent {True,False}]
                            [--description DESCRIPTION]
                            [--qos-policy QOS_POLICY]
                            [--availability-zone-hint AVAILABILITY_ZONE]
                            [--dns-domain DNS_DOMAIN]
                            NAME

  Create a network for a given tenant.

  positional arguments:
    NAME                  Name of network to create.

  optional arguments:
    -h, --help            show this help message and exit
    --request-format {json}
                          DEPRECATED! Only JSON request format is supported.
    --tenant-id TENANT_ID
                          The owner tenant ID.
    --admin-state-down    Set admin state up to false.
    --shared              Set the network as shared.
    --provider:network_type <network_type>
                          The physical mechanism by which the virtual network is
                          implemented.
    --provider:physical_network <physical_network_name>
                          Name of the physical network over which the virtual
                          network is implemented.
    --provider:segmentation_id <segmentation_id>
                          VLAN ID for VLAN networks or tunnel-id for GRE/VXLAN
                          networks.
    --vlan-transparent {True,False}
                          Create a vlan transparent network.
    --description DESCRIPTION
                          Description of network.
    --qos-policy QOS_POLICY
                          Attach QoS policy ID or name to the resource.
    --availability-zone-hint AVAILABILITY_ZONE
                          Availability Zone for the network (requires
                          availability zone extension, this option can be
                          repeated).
    --dns-domain DNS_DOMAIN
                          Assign DNS domain to the network (requires DNS
                          integration extension)

  output formatters:
    output formatter options

    -f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml}
                          the output format, defaults to table
    -c COLUMN, --column COLUMN
                          specify the column(s) to include, can be repeated

  table formatter:
    --max-width <integer>
                          Maximum display width, 0 to disable

  json formatter:
    --noindent            whether to disable indenting the JSON

  shell formatter:
    a format a UNIX shell can parse (variable="value")

    --prefix PREFIX       add a prefix to all variable names
  [root@localhost devstack]# 

  [root@localhost devstack]# neutron net-create net_test --shared 
--router:external
  Created a new network:
  +---------------------------+--------------------------------------+
  | Field                     | Value                                |
  +---------------------------+--------------------------------------+
  | admin_state_up            | True                                 |
  | availability_zone_hints   |                                      |
  | availability_zones        |                                      |
  | created_at                | 2016-06-22T04:50:38                  |
  | description               |                                      |
  | id                        | be6ae072-3a39-4aa5-a180-79e2c0673db1 |
  | ipv4_address_scope        |                                      |
  | ipv6_address_scope        |                                      |
  | is_default                | False                                |
  | mtu                       | 1450                                 |
  | name                      | net_test                             |
  | port_security_enabled     | True                                 |
  | provider:network_type     | vxlan                                |
  | provider:physical_network |                                      |
  | provider:segmentation_id  | 1050                                 |
  | router:external           | True                                 |
  | shared                    | True                                 |
  | status                    | ACTIVE                               |
  | subnets                   |                                      |
  | tags                      |                                      |
  | tenant_id                 | d692c40b9bd74af38361d855bebb60ac     |
  | updated_at                | 2016-06-22T04:50:39                  |
  +---------------------------+--------------------------------------+
  [root@localhost devstack]# 

  In Kilo,'router:external 'argument existed in the help msg of 'net-
  create' command;

  
  [root@SBCRRack3Shelf1Slot11 ~(keystone_admin)]# neutron help net-create
  usage: neutron net-create [-h] [-f {shell,table,value}] [-c COLUMN]
                            [--max-width <integer>] [--prefix PREFIX]
                            [--request-format {json,xml}]
                            [--tenant-id TENANT_ID] [--admin-state-down]
                            [--shared] 
                            [--router:external]
                            [--provider:network_type <network_type>]
                            [--provider:physical_network 
<physical_network_name>]
                            [--provider:segmentation_id <segmentation_id>]
                            [--vlan-transparent {True,False}]
                            NAME

  Create a network for a given tenant.

  positional arguments:
    NAME                  Name of network to create.

  optional arguments:
    -h, --help            show this help message and exit
    --request-format {json,xml}
                          The XML or JSON request format.
    --tenant-id TENANT_ID
                          The owner tenant ID.
    --admin-state-down    Set admin state up to false.
    --shared              Set the network as shared.
    --router:external     Set network as external, it is only available for
                          admin
    --provider:network_type <network_type>
                          The physical mechanism by which the virtual network is
                          implemented.
    --provider:physical_network <physical_network_name>
                          Name of the physical network over which the virtual
                          network is implemented.
    --provider:segmentation_id <segmentation_id>
                          VLAN ID for VLAN networks or tunnel-id for GRE/VXLAN
                          networks.
    --vlan-transparent {True,False}
                          Create a vlan transparent network.

  output formatters:
    output formatter options

    -f {shell,table,value}, --format {shell,table,value}
                          the output format, defaults to table
    -c COLUMN, --column COLUMN
                          specify the column(s) to include, can be repeated

  table formatter:
    --max-width <integer>
                          Maximum display width, 0 to disable

  shell formatter:
    a format a UNIX shell can parse (variable="value")

    --prefix PREFIX       add a prefix to all variable names
  [root@SBCRRack3Shelf1Slot11 ~(keystone_admin)]#

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to