From 9cdb9a3f309c03fe20d0ff2f1f240eb4b07b90f5 Mon Sep 17 00:00:00 2001 From: mattmceuen Date: Sun, 15 Jan 2017 21:56:31 -0600 Subject: [PATCH] Add --gateway to README network create examples The --gateway parameter needs to be passed to docker network create when using kuryr-libnetwork. This changes updates the README to consistently use --gateway in its examples. Change-Id: I9dd02f5df6d9886fe5e6c1365843bac5ad62e0c7 Closes-Bug: #1653178 --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index ff03c8b7..50ea2bfc 100644 --- a/README.rst +++ b/README.rst @@ -296,7 +296,7 @@ Testing Kuryr For a quick check that Kuryr is working, create a network:: $ docker network create --driver kuryr --ipam-driver kuryr \ - --subnet 10.10.0.0/16 test_net + --subnet 10.10.0.0/16 --gateway=10.10.0.1 test_net 785f8c1b5ae480c4ebcb54c1c48ab875754e4680d915b270279e4f6a1aa52283 $ docker network ls NETWORK ID NAME DRIVER @@ -353,7 +353,7 @@ command. Docker cli options -o and --ipam-opt should be used to pass pool names as shown below:: $ sudo docker network create --driver=kuryr --ipam-driver=kuryr \ - --subnet 10.0.0.0/16 --ip-range 10.0.0.0/24 \ + --subnet 10.0.0.0/16 --gateway=10.0.0.1 --ip-range 10.0.0.0/24 \ -o neutron.pool.name=neutron_pool1 \ --ipam-opt=neutron.pool.name=neutron_pool1 \ foo @@ -363,7 +363,7 @@ Now Docker user creates another network with same cidr as the previous one, i.e 10.0.0.0/16, but with different pool name, neutron_pool2:: $ sudo docker network create --driver=kuryr --ipam-driver=kuryr \ - --subnet 10.0.0.0/16 --ip-range 10.0.0.0/24 \ + --subnet 10.0.0.0/16 --gateway=10.0.0.1 --ip-range 10.0.0.0/24 \ -o neutron.pool.name=neutron_pool2 \ --ipam-opt=neutron.pool.name=neutron_pool2 \ bar