[user-guide] Update the "neutron net-create" to openstack command
Change-Id: I37d7e79ba9242de4d3e049248b5e2be684edd7b2 Implements: blueprint use-openstack-command
This commit is contained in:
parent
44425abf50
commit
147cfca8b7
@ -206,23 +206,36 @@ Create the provider and self-service networks
|
|||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ neutron net-create --router:external True --provider:physical_network provider \
|
$ openstack network create provider --external --provider-physical-network \
|
||||||
--provider:network_type flat provider
|
provider --provider-network-type flat
|
||||||
Created a new network:
|
Created a new network:
|
||||||
+---------------------------+--------------------------------------+
|
+---------------------------+--------------------------------------+
|
||||||
| Field | Value |
|
| Field | Value |
|
||||||
+---------------------------+--------------------------------------+
|
+---------------------------+--------------------------------------+
|
||||||
| admin_state_up | True |
|
| admin_state_up | UP |
|
||||||
| id | 68ec148c-181f-4656-8334-8f4eb148689d |
|
| availability_zone_hints | |
|
||||||
|
| availability_zones | |
|
||||||
|
| created_at | 2016-12-21T08:47:41Z |
|
||||||
|
| description | |
|
||||||
|
| headers | |
|
||||||
|
| id | 190ca651-2ee3-4a4b-891f-dedda47974fe |
|
||||||
|
| ipv4_address_scope | None |
|
||||||
|
| ipv6_address_scope | None |
|
||||||
|
| is_default | False |
|
||||||
|
| mtu | 1450 |
|
||||||
| name | provider |
|
| name | provider |
|
||||||
|
| port_security_enabled | True |
|
||||||
|
| project_id | c961a8f6d3654657885226378ade8220 |
|
||||||
| provider:network_type | flat |
|
| provider:network_type | flat |
|
||||||
| provider:physical_network | provider |
|
| provider:physical_network | provider |
|
||||||
| provider:segmentation_id | |
|
| provider:segmentation_id | 66 |
|
||||||
| router:external | True |
|
| revision_number | 3 |
|
||||||
|
| router:external | External |
|
||||||
| shared | False |
|
| shared | False |
|
||||||
| status | ACTIVE |
|
| status | ACTIVE |
|
||||||
| subnets | |
|
| subnets | |
|
||||||
| tenant_id | b3ac05ef10bf441fbf4aa17f16ae1e6d |
|
| tags | [] |
|
||||||
|
| updated_at | 2016-12-21T08:47:41Z |
|
||||||
+---------------------------+--------------------------------------+
|
+---------------------------+--------------------------------------+
|
||||||
|
|
||||||
#. Create a subnet on the provider network using an IP address range from
|
#. Create a subnet on the provider network using an IP address range from
|
||||||
@ -265,46 +278,94 @@ Create the provider and self-service networks
|
|||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ neutron net-create selfservice1
|
$ openstack network create selfservice1
|
||||||
Created a new network:
|
Created a new network:
|
||||||
+---------------------------+--------------------------------------+
|
+---------------------------+--------------------------------------+
|
||||||
| Field | Value |
|
| Field | Value |
|
||||||
+---------------------------+--------------------------------------+
|
+---------------------------+--------------------------------------+
|
||||||
| admin_state_up | True |
|
| admin_state_up | UP |
|
||||||
| id | be79de1e-5f56-11e6-9dfb-233e41cec48c |
|
| availability_zone_hints | |
|
||||||
|
| availability_zones | |
|
||||||
|
| created_at | 2016-12-21T08:49:38Z |
|
||||||
|
| description | |
|
||||||
|
| headers | |
|
||||||
|
| id | 9d842606-ef3d-4160-9ed9-e03fa63aed96 |
|
||||||
|
| ipv4_address_scope | None |
|
||||||
|
| ipv6_address_scope | None |
|
||||||
|
| mtu | 1450 |
|
||||||
| name | selfservice1 |
|
| name | selfservice1 |
|
||||||
|
| port_security_enabled | True |
|
||||||
|
| project_id | c961a8f6d3654657885226378ade8220 |
|
||||||
|
| provider:network_type | vxlan |
|
||||||
|
| provider:physical_network | None |
|
||||||
|
| provider:segmentation_id | 106 |
|
||||||
|
| revision_number | 3 |
|
||||||
|
| router:external | Internal |
|
||||||
| shared | False |
|
| shared | False |
|
||||||
| status | ACTIVE |
|
| status | ACTIVE |
|
||||||
| subnets | |
|
| subnets | |
|
||||||
| tenant_id | b3ac05ef10bf441fbf4aa17f16ae1e6d |
|
| tags | [] |
|
||||||
|
| updated_at | 2016-12-21T08:49:38Z |
|
||||||
+---------------------------+--------------------------------------+
|
+---------------------------+--------------------------------------+
|
||||||
|
|
||||||
$ neutron net-create selfservice2
|
$ openstack network create selfservice2
|
||||||
Created a new network:
|
Created a new network:
|
||||||
+---------------------------+--------------------------------------+
|
+---------------------------+--------------------------------------+
|
||||||
| Field | Value |
|
| Field | Value |
|
||||||
+---------------------------+--------------------------------------+
|
+---------------------------+--------------------------------------+
|
||||||
| admin_state_up | True |
|
| admin_state_up | UP |
|
||||||
| id | c1fd9846-5f56-11e6-a8ac-0f998d9cc0a2 |
|
| availability_zone_hints | |
|
||||||
|
| availability_zones | |
|
||||||
|
| created_at | 2016-12-21T08:50:05Z |
|
||||||
|
| description | |
|
||||||
|
| headers | |
|
||||||
|
| id | f85639e1-d23f-438e-b2b1-f40570d86b1c |
|
||||||
|
| ipv4_address_scope | None |
|
||||||
|
| ipv6_address_scope | None |
|
||||||
|
| mtu | 1450 |
|
||||||
| name | selfservice2 |
|
| name | selfservice2 |
|
||||||
|
| port_security_enabled | True |
|
||||||
|
| project_id | c961a8f6d3654657885226378ade8220 |
|
||||||
|
| provider:network_type | vxlan |
|
||||||
|
| provider:physical_network | None |
|
||||||
|
| provider:segmentation_id | 21 |
|
||||||
|
| revision_number | 3 |
|
||||||
|
| router:external | Internal |
|
||||||
| shared | False |
|
| shared | False |
|
||||||
| status | ACTIVE |
|
| status | ACTIVE |
|
||||||
| subnets | |
|
| subnets | |
|
||||||
| tenant_id | b3ac05ef10bf441fbf4aa17f16ae1e6d |
|
| tags | [] |
|
||||||
|
| updated_at | 2016-12-21T08:50:05Z |
|
||||||
+---------------------------+--------------------------------------+
|
+---------------------------+--------------------------------------+
|
||||||
|
|
||||||
$ neutron net-create selfservice3
|
$ openstack network create selfservice3
|
||||||
Created a new network:
|
Created a new network:
|
||||||
+---------------------------+--------------------------------------+
|
+---------------------------+--------------------------------------+
|
||||||
| Field | Value |
|
| Field | Value |
|
||||||
+---------------------------+--------------------------------------+
|
+---------------------------+--------------------------------------+
|
||||||
| admin_state_up | True |
|
| admin_state_up | UP |
|
||||||
| id | c283dc1c-5f56-11e6-bfb6-efc30e1eb73b |
|
| availability_zone_hints | |
|
||||||
|
| availability_zones | |
|
||||||
|
| created_at | 2016-12-21T08:50:35Z |
|
||||||
|
| description | |
|
||||||
|
| headers | |
|
||||||
|
| id | eeccdb82-5cf4-4999-8ab3-e7dc99e7d43b |
|
||||||
|
| ipv4_address_scope | None |
|
||||||
|
| ipv6_address_scope | None |
|
||||||
|
| mtu | 1450 |
|
||||||
| name | selfservice3 |
|
| name | selfservice3 |
|
||||||
|
| port_security_enabled | True |
|
||||||
|
| project_id | c961a8f6d3654657885226378ade8220 |
|
||||||
|
| provider:network_type | vxlan |
|
||||||
|
| provider:physical_network | None |
|
||||||
|
| provider:segmentation_id | 86 |
|
||||||
|
| revision_number | 3 |
|
||||||
|
| router:external | Internal |
|
||||||
| shared | False |
|
| shared | False |
|
||||||
| status | ACTIVE |
|
| status | ACTIVE |
|
||||||
| subnets | |
|
| subnets | |
|
||||||
| tenant_id | b3ac05ef10bf441fbf4aa17f16ae1e6d |
|
| tags | [] |
|
||||||
|
| updated_at | 2016-12-21T08:50:35Z |
|
||||||
+---------------------------+--------------------------------------+
|
+---------------------------+--------------------------------------+
|
||||||
|
|
||||||
#. Create a subnet on the first two self-service networks using an IP address
|
#. Create a subnet on the first two self-service networks using an IP address
|
||||||
|
@ -30,22 +30,34 @@ Create networks
|
|||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ neutron net-create net1
|
$ openstack network create net1
|
||||||
Created a new network:
|
Created a new network:
|
||||||
+---------------------------+--------------------------------------+
|
+---------------------------+--------------------------------------+
|
||||||
| Field | Value |
|
| Field | Value |
|
||||||
+---------------------------+--------------------------------------+
|
+---------------------------+--------------------------------------+
|
||||||
| admin_state_up | True |
|
| admin_state_up | UP |
|
||||||
| id | 2d627131-c841-4e3a-ace6-f2dd75773b6d |
|
| availability_zone_hints | |
|
||||||
|
| availability_zones | |
|
||||||
|
| created_at | 2016-12-21T08:32:54Z |
|
||||||
|
| description | |
|
||||||
|
| headers | |
|
||||||
|
| id | 180620e3-9eae-4ba7-9739-c5847966e1f0 |
|
||||||
|
| ipv4_address_scope | None |
|
||||||
|
| ipv6_address_scope | None |
|
||||||
|
| mtu | 1450 |
|
||||||
| name | net1 |
|
| name | net1 |
|
||||||
| provider:network_type | vlan |
|
| port_security_enabled | True |
|
||||||
| provider:physical_network | physnet1 |
|
| project_id | c961a8f6d3654657885226378ade8220 |
|
||||||
| provider:segmentation_id | 1001 |
|
| provider:network_type | vxlan |
|
||||||
| router:external | False |
|
| provider:physical_network | None |
|
||||||
|
| provider:segmentation_id | 14 |
|
||||||
|
| revision_number | 3 |
|
||||||
|
| router:external | Internal |
|
||||||
| shared | False |
|
| shared | False |
|
||||||
| status | ACTIVE |
|
| status | ACTIVE |
|
||||||
| subnets | |
|
| subnets | |
|
||||||
| tenant_id | 3671f46ec35e4bbca6ef92ab7975e463 |
|
| tags | [] |
|
||||||
|
| updated_at | 2016-12-21T08:32:54Z |
|
||||||
+---------------------------+--------------------------------------+
|
+---------------------------+--------------------------------------+
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
@ -56,26 +68,38 @@ Create networks
|
|||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ neutron net-create net2 --provider:network-type local
|
$ openstack network create net2 --provider-network-type vxlan
|
||||||
Created a new network:
|
Created a new network:
|
||||||
+---------------------------+--------------------------------------+
|
+---------------------------+--------------------------------------+
|
||||||
| Field | Value |
|
| Field | Value |
|
||||||
+---------------------------+--------------------------------------+
|
+---------------------------+--------------------------------------+
|
||||||
| admin_state_up | True |
|
| admin_state_up | UP |
|
||||||
| id | 524e26ea-fad4-4bb0-b504-1ad0dc770e7a |
|
| availability_zone_hints | |
|
||||||
|
| availability_zones | |
|
||||||
|
| created_at | 2016-12-21T08:33:34Z |
|
||||||
|
| description | |
|
||||||
|
| headers | |
|
||||||
|
| id | c0a563d5-ef7d-46b3-b30d-6b9d4138b6cf |
|
||||||
|
| ipv4_address_scope | None |
|
||||||
|
| ipv6_address_scope | None |
|
||||||
|
| mtu | 1450 |
|
||||||
| name | net2 |
|
| name | net2 |
|
||||||
| provider:network_type | local |
|
| port_security_enabled | True |
|
||||||
| provider:physical_network | |
|
| project_id | c961a8f6d3654657885226378ade8220 |
|
||||||
| provider:segmentation_id | |
|
| provider:network_type | vxlan |
|
||||||
| router:external | False |
|
| provider:physical_network | None |
|
||||||
|
| provider:segmentation_id | 87 |
|
||||||
|
| revision_number | 3 |
|
||||||
|
| router:external | Internal |
|
||||||
| shared | False |
|
| shared | False |
|
||||||
| status | ACTIVE |
|
| status | ACTIVE |
|
||||||
| subnets | |
|
| subnets | |
|
||||||
| tenant_id | 3671f46ec35e4bbca6ef92ab7975e463 |
|
| tags | [] |
|
||||||
|
| updated_at | 2016-12-21T08:33:34Z |
|
||||||
+---------------------------+--------------------------------------+
|
+---------------------------+--------------------------------------+
|
||||||
|
|
||||||
Just as shown previously, the unknown option ``--provider:network-type``
|
Just as shown previously, the unknown option ``--provider-network-type``
|
||||||
is used to create a ``local`` provider network.
|
is used to create a ``vxlan`` provider network.
|
||||||
|
|
||||||
Create subnets
|
Create subnets
|
||||||
~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~
|
||||||
|
Loading…
Reference in New Issue
Block a user