"neutron net-create" missing help info for provider network attributes

Bug #1377357 reported by Danny Choi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-neutronclient
Invalid
Undecided
Unassigned

Bug Description

OpenStack version: Juno

ubuntu@trusty1:~/devstack$ nova-manage version
2015.1.0

Issue: "neutron help net-create" missing the following provider network attributes

   --provider:network_type
   --provider:physical_network
   --provider:segmentation_id

ubuntu@trusty1:~/devstack$ 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]
                          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.

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

As user admin, you can specify these attributes when creating a network:

ubuntu@trusty1:~/devstack$ neutron net-create admin_network --provider:network_type vlan --provider:physical_network physnet1 --provider:segmentation_id 399
Created a new network:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | df176962-8c61-4621-ac3a-e978a56b1933 |
| name | admin_network |
| provider:network_type | vlan |
| provider:physical_network | physnet1 |
| provider:segmentation_id | 399 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | db81f81239f54d5d89293dacc7a284d2 |
+---------------------------+--------------------------------------+

Changed in python-neutronclient:
assignee: nobody → Karthik Natarajan (natarajk)
Revision history for this message
P. Watsalya Mishra (watsalya-mishra) wrote :

As there was no progress on this bug since long time, so I have assigned it to myself to resolve it at the earliest.

Changed in python-neutronclient:
assignee: Karthik Natarajan (natarajk) → tcs_openstack_group (tcs-openstack-group)
assignee: tcs_openstack_group (tcs-openstack-group) → P. Watsalya Mishra (watsalya-mishra)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-neutronclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/138662

Changed in python-neutronclient:
assignee: P. Watsalya Mishra (watsalya-mishra) → Amandeep (rattenpal-amandeep)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/147383

Revision history for this message
Amandeep (rattenpal-amandeep) wrote :
Changed in python-neutronclient:
status: In Progress → Invalid
assignee: Amandeep (rattenpal-amandeep) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-neutronclient (master)

Change abandoned by Amandeep (<email address hidden>) on branch: master
Review: https://review.openstack.org/147383
Reason: fix merged already https://review.openstack.org/#/c/134862/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by P. Watsalya Mishra (<email address hidden>) on branch: master
Review: https://review.openstack.org/138662
Reason: The issues will be addressed by https://review.openstack.org/#/c/134862/.
So this one is redundant.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.