[networking] RFC 5737 compliance: service subnets

Replace non-compliant subnets in:

config-service-subnets.rst

Change-Id: Ib5cb10588e0293dcb7e9105702238c9914fce39b
Partial-Bug: #1656378
This commit is contained in:
John Davidge 2017-02-03 14:19:51 +00:00
parent dcf44a8928
commit eb1ff2a054
1 changed files with 27 additions and 24 deletions

View File

@ -91,14 +91,14 @@ to allow users to experiment with configuring service subnets.
.. code-block:: console
$ openstack subnet create demo-subnet1 --subnet-range 10.0.0.0/24 \
$ openstack subnet create demo-subnet1 --subnet-range 192.0.2.0/24 \
--service-type 'compute:nova' --network demo-net1
+-------------------+--------------------------------------+
| Field | Value |
+-------------------+--------------------------------------+
| id | 6e38b23f-0b27-4e3c-8e69-fd23a3df1935 |
| ip_version | 4 |
| cidr | 10.0.0.0/24 |
| cidr | 192.0.2.0/24 |
| name | demo-subnet1 |
| network_id | b5b729d8-31cc-4d2c-8284-72b3291fec02 |
| service_types | ['compute:nova'] |
@ -110,14 +110,14 @@ to allow users to experiment with configuring service subnets.
.. code-block:: console
$ openstack subnet create demo-subnet2 --subnet-range 10.0.10.0/24 \
$ openstack subnet create demo-subnet2 --subnet-range 198.51.100.0/24 \
--service-type 'compute:foo' --network demo-net1
+-------------------+--------------------------------------+
| Field | Value |
+-------------------+--------------------------------------+
| id | ea139dcd-17a3-4f0a-8cca-dff8b4e03f8a |
| ip_version | 4 |
| cidr | 10.0.10.0/24 |
| cidr | 198.51.100.0/24 |
| name | demo-subnet2 |
| network_id | b5b729d8-31cc-4d2c-8284-72b3291fec02 |
| service_types | ['compute:foo'] |
@ -172,11 +172,11 @@ to allow users to experiment with configuring service subnets.
.. code-block:: console
$ openstack server list
+--------------------------------------+-----------------+---------+--------------------+
| ID | Name | Status | Networks |
+--------------------------------------+-----------------+---------+--------------------+
| 20181f46-5cd2-4af8-9af0-f4cf5c983008 | demo-instance1 | ACTIVE | demo-net1=10.0.0.3 |
+--------------------------------------+-----------------+---------+--------------------+
+--------------------------------------+-----------------+---------+---------------------+
| ID | Name | Status | Networks |
+--------------------------------------+-----------------+---------+---------------------+
| 20181f46-5cd2-4af8-9af0-f4cf5c983008 | demo-instance1 | ACTIVE | demo-net1=192.0.2.3 |
+--------------------------------------+-----------------+---------+---------------------+
Example 2 - DVR configuration
-----------------------------
@ -186,9 +186,9 @@ a DVR-enabled deployment, with the goal of minimizing public IP
address consumption. This example uses three subnets on the same external
network:
* 192.168.1.0/16 for instance floating IP addresses
* 10.1.0.0/24 for floating IP agent gateway IPs configured on compute nodes
* 10.2.0.0/24 for all other IP allocations on the external network
* 192.0.2.0/24 for instance floating IP addresses
* 198.51.100.0/24 for floating IP agent gateway IPs configured on compute nodes
* 203.0.113.0/25 for all other IP allocations on the external network
This example uses again the private network, ``demo-net1``
(b5b729d8-31cc-4d2c-8284-72b3291fec02) which was created in
@ -211,7 +211,7 @@ This example uses again the private network, ``demo-net1``
.. code-block:: console
$ openstack subnet create demo-floating-ip-subnet \
--subnet-range 192.168.1.0/16 --no-dhcp \
--subnet-range 192.0.2.0/24 --no-dhcp \
--service-type 'network:floatingip' --network demo-ext-net
#. Create a subnet on the external network for the floating IP agent
@ -221,7 +221,7 @@ This example uses again the private network, ``demo-net1``
.. code-block:: console
$ openstack subnet create demo-floating-ip-agent-gateway-subnet \
--subnet-range 10.1.0.0/24 --no-dhcp \
--subnet-range 198.51.100.0/24 --no-dhcp \
--service-type 'network:floatingip_agent_gateway' \
--network demo-ext-net
@ -233,7 +233,7 @@ This example uses again the private network, ``demo-net1``
.. code-block:: console
$ openstack subnet create demo-other-subnet \
--subnet-range 10.2.0.0/24 --no-dhcp \
--subnet-range 203.0.113.0/25 --no-dhcp \
--network demo-ext-net
#. Create a router:
@ -264,11 +264,12 @@ This example uses again the private network, ``demo-net1``
$ openstack server create demo-instance1 --flavor m1.tiny \
--image cirros --nic net-id=b5b729d8-31cc-4d2c-8284-72b3291fec02
$ openstack port list --server demo-instance1
+--------------------------------------+------+-------------------+----------------------------------------------------------------------------------------------------+--------+
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+--------------------------------------+------+-------------------+----------------------------------------------------------------------------------------------------+--------+
| a752bb24-9bf2-4d37-b9d6-07da69c86f19 | | fa:16:3e:99:54:32 | ip_address='10.0.0.3', subnet_id='6e38b23f-0b27-4e3c-8e69-fd23a3df1935' | ACTIVE |
+--------------------------------------+------+-------------------+----------------------------------------------------------------------------------------------------+--------+
+--------------------------------------+------+-------------------+--------------------------------------------------+--------+
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+--------------------------------------+------+-------------------+--------------------------------------------------+--------+
| a752bb24-9bf2-4d37-b9d6-07da69c86f19 | | fa:16:3e:99:54:32 | ip_address='203.0.113.130', | ACTIVE |
| | | | subnet_id='6e38b23f-0b27-4e3c-8e69-fd23a3df1935' | |
+--------------------------------------+------+-------------------+--------------------------------------------------+--------+
#. Associate a floating IP with the instance port and verify it was
allocated an IP address from the correct subnet:
@ -280,8 +281,8 @@ This example uses again the private network, ``demo-net1``
+---------------------+--------------------------------------+
| Field | Value |
+---------------------+--------------------------------------+
| fixed_ip_address | 10.0.0.3 |
| floating_ip_address | 192.168.1.12 |
| fixed_ip_address | 203.0.113.130 |
| floating_ip_address | 192.0.2.12 |
| floating_network_id | 02d236d5-dad9-4082-bb6b-5245f9f84d13 |
| id | f15cae7f-5e05-4b19-bd25-4bb71edcf3de |
| port_id | a752bb24-9bf2-4d37-b9d6-07da69c86f19 |
@ -306,7 +307,8 @@ This example uses again the private network, ``demo-net1``
| device_id | 5a8ca19f-3703-4f81-bc29-db6bc2f528d6 |
| device_owner | network:router_gateway |
| extra_dhcp_opts | |
| fixed_ips | ip_address='10.2.0.11', subnet_id='67c251d9-2b7a-4200-99f6-e13785b0334d' |
| fixed_ips | ip_address='203.0.113.11', |
| | subnet_id='67c251d9-2b7a-4200-99f6-e13785b0334d' |
| id | f148ffeb-3c26-4067-bc5f-5c3dfddae2f5 |
| mac_address | fa:16:3e:2c:0f:69 |
| network_id | 02d236d5-dad9-4082-bb6b-5245f9f84d13 |
@ -326,7 +328,8 @@ This example uses again the private network, ``demo-net1``
| device_id | 3d0c98eb-bca3-45cc-8aa4-90ae3deb0844 |
| device_owner | network:floatingip_agent_gateway |
| extra_dhcp_opts | |
| fixed_ips | ip_address='10.1.0.10', subnet_id='67c251d9-2b7a-4200-99f6-e13785b0334d' |
| fixed_ips | ip_address='198.51.100.10', |
| | subnet_id='67c251d9-2b7a-4200-99f6-e13785b0334d' |
| id | a2d1e756-8ae1-4f96-9aa1-e7ea16a6a68a |
| mac_address | fa:16:3e:f4:5d:fa |
| network_id | 02d236d5-dad9-4082-bb6b-5245f9f84d13 |