[install] Use openstack instead of neutron client

Update documentation for creating the provider network to use the
openstack client as opposed to the neutron client. Also updated the
output of the client after creating the network / subnet.

Change-Id: I1094ac695c23b1c1f03027677697fd90f0f1bace
This commit is contained in:
Nicolas Bock 2016-11-02 14:47:45 -06:00
parent b2b044aa12
commit 3fe9fb5660
No known key found for this signature in database
GPG Key ID: 6BFC7B4EA87328F0

View File

@ -43,45 +43,46 @@ Create the provider network
.. code-block:: console .. code-block:: console
$ neutron net-create --shared --provider:physical_network provider \ $ openstack network create --share \
--provider:network_type flat provider --provider-physical-network provider \
--provider-network-type flat provider
Created a new network: Created a new network:
+---------------------------+--------------------------------------+ +---------------------------+--------------------------------------+
| Field | Value | | Field | Value |
+---------------------------+--------------------------------------+ +---------------------------+--------------------------------------+
| admin_state_up | True | | admin_state_up | UP |
| availability_zone_hints | | | availability_zone_hints | |
| availability_zones | | | availability_zones | |
| created_at | 2016-09-30T02:33:36Z | | created_at | 2016-11-02T20:36:18Z |
| description | | | description | |
| id | 89e06055-e50d-4c60-bb02-2db800c5af30 | | headers | |
| ipv4_address_scope | | | id | 9793a02d-4f05-40d2-a280-407c48db0161 |
| ipv6_address_scope | | | ipv4_address_scope | None |
| ipv6_address_scope | None |
| mtu | 1500 | | mtu | 1500 |
| name | provider | | name | provider |
| port_security_enabled | True | | port_security_enabled | True |
| project_id | 7e188c33604d4b02ae0a99b5da68cae0 | | project_id | 7e188c33604d4b02ae0a99b5da68cae0 |
| provider:network_type | flat | | provider:network_type | flat |
| provider:physical_network | provider | | provider:physical_network | provider |
| provider:segmentation_id | | | provider:segmentation_id | None |
| revision_number | 2 | | revision_number | 3 |
| router:external | False | | router:external | Internal |
| shared | True | | shared | True |
| status | ACTIVE | | status | ACTIVE |
| subnets | | | subnets | |
| tags | | | tags | [] |
| tenant_id | 7e188c33604d4b02ae0a99b5da68cae0 | | updated_at | 2016-11-02T20:36:18Z |
| updated_at | 2016-09-30T02:33:36Z |
+---------------------------+--------------------------------------+ +---------------------------+--------------------------------------+
.. end .. end
The ``--shared`` option allows all projects to use the virtual network. The ``--share`` option allows all projects to use the virtual network.
The ``--provider:physical_network provider`` and The ``--provider-physical-network provider`` and
``--provider:network_type flat`` options connect the flat virtual network ``--provider-network-type flat`` options connect the flat virtual network
to the flat (native/untagged) physical network on the ``eth1`` interface to the flat (native/untagged) physical network on the ``eth1`` interface
on the host using information from the following files: on the host using information from the following files:
@ -107,10 +108,10 @@ Create the provider network
.. code-block:: console .. code-block:: console
$ neutron subnet-create --name provider \ $ openstack subnet create --network provider \
--allocation-pool start=START_IP_ADDRESS,end=END_IP_ADDRESS \ --allocation-pool start=START_IP_ADDRESS,end=END_IP_ADDRESS \
--dns-nameserver DNS_RESOLVER --gateway PROVIDER_NETWORK_GATEWAY \ --dns-nameserver DNS_RESOLVER --gateway PROVIDER_NETWORK_GATEWAY \
provider PROVIDER_NETWORK_CIDR --subnet-range PROVIDER_NETWORK_CIDR provider
.. end .. end
@ -137,36 +138,36 @@ Create the provider network
.. code-block:: console .. code-block:: console
$ neutron subnet-create --name provider \ $ openstack subnet create --network provider \
--allocation-pool start=203.0.113.101,end=203.0.113.250 \ --allocation-pool start=203.0.113.101,end=203.0.113.250 \
--dns-nameserver 8.8.4.4 --gateway 203.0.113.1 \ --dns-nameserver 8.8.4.4 --gateway 203.0.113.1 \
provider 203.0.113.0/24 --subnet-range 203.0.113.0/24 provider
Created a new subnet: Created a new subnet:
+-------------------+----------------------------------------------------+ +-------------------+--------------------------------------+
| Field | Value | | Field | Value |
+-------------------+----------------------------------------------------+ +-------------------+--------------------------------------+
| allocation_pools | {"start": "203.0.113.101", "end": "203.0.113.250"} | | allocation_pools | 203.0.113.101-203.0.113.250 |
| cidr | 203.0.113.0/24 | | cidr | 203.0.113.0/24 |
| created_at | 2016-09-30T02:51:06Z | | created_at | 2016-11-02T20:45:04Z |
| description | | | description | |
| dns_nameservers | 8.8.4.4 | | dns_nameservers | 8.8.4.4 |
| enable_dhcp | True | | enable_dhcp | True |
| gateway_ip | 203.0.113.1 | | gateway_ip | 203.0.113.1 |
| host_routes | | | headers | |
| id | 5cc70da8-4ee7-4565-be53-b9c011fca011 | | host_routes | |
| ip_version | 4 | | id | 2c65ef8c-a5f3-4f51-94c1-4df0daaaab5c |
| ipv6_address_mode | | | ip_version | 4 |
| ipv6_ra_mode | | | ipv6_address_mode | None |
| name | provider | | ipv6_ra_mode | None |
| network_id | 0e62efcd-8cee-46c7-b163-d8df05c3c5ad | | name | provider |
| project_id | 7e188c33604d4b02ae0a99b5da68cae0 | | network_id | 9793a02d-4f05-40d2-a280-407c48db0161 |
| revision_number | 2 | | project_id | 7e188c33604d4b02ae0a99b5da68cae0 |
| service_types | | | revision_number | 2 |
| subnetpool_id | | | service_types | [] |
| tenant_id | d84313397390425c8ed50b2f6e18d092 | | subnetpool_id | None |
| updated_at | 2016-09-30T02:51:06Z | | updated_at | 2016-11-02T20:45:04Z |
+-------------------+----------------------------------------------------+ +-------------------+--------------------------------------+
.. end .. end