From 63b7ddc6be44b095ad36136c96c0455eed15418e Mon Sep 17 00:00:00 2001 From: Qian Min Chen Date: Sat, 7 Jul 2018 23:30:14 +0800 Subject: [PATCH] [doc] Use openstack client commands to replace neutron client The neutron client commands will be deprecated, so use openstack client commands to replace neutron client. Change-Id: I6fdf867f3c632c846940b9469e67cf4ba9653161 --- doc/source/install/configure-networking.rst | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/doc/source/install/configure-networking.rst b/doc/source/install/configure-networking.rst index 8e834f50f5..f8775486f5 100644 --- a/doc/source/install/configure-networking.rst +++ b/doc/source/install/configure-networking.rst @@ -138,14 +138,13 @@ An example of this is shown in the :ref:`enrollment` section. .. code-block:: console - $ neutron net-create --tenant-id $TENANT_ID sharednet1 --shared \ - --provider:network_type flat --provider:physical_network physnet1 + $ openstack network create --project $TENANT_ID sharednet1 --share \ + --provider-network-type flat --provider-physical-network physnet1 #. Create the subnet on the newly created network: .. code-block:: console - $ neutron subnet-create sharednet1 $NETWORK_CIDR --name $SUBNET_NAME \ - --ip-version=4 --gateway=$GATEWAY_IP --allocation-pool \ - start=$START_IP,end=$END_IP --enable-dhcp - + $ openstack subnet create $SUBNET_NAME --network sharednet1 \ + --subnet-range $NETWORK_CIDR --ip-version 4 --gateway $GATEWAY_IP \ + --allocation-pool start=$START_IP,end=$END_IP --dhcp