From a14c16674023bd6672ca49e3551c707702711050 Mon Sep 17 00:00:00 2001 From: John DeNisco Date: Wed, 1 Aug 2018 10:38:23 -0400 Subject: docs: change code blocks from "shell" to "console" Change-Id: I136fccfc06e07fb68d11df686c59687362fb8827 Signed-off-by: John DeNisco --- docs/reference/vppvagrant/VagrantVMSetup.rst | 12 ++++----- docs/reference/vppvagrant/boxSetup.rst | 8 +++--- .../reference/vppvagrant/installingVboxVagrant.rst | 6 ++--- docs/reference/vppvagrant/settingENV.rst | 2 +- docs/usecases/Routing.rst | 30 +++++++++++----------- docs/usecases/containerCreation.rst | 28 ++++++++++---------- docs/usecases/containerSetup.rst | 8 +++--- 7 files changed, 47 insertions(+), 47 deletions(-) (limited to 'docs') diff --git a/docs/reference/vppvagrant/VagrantVMSetup.rst b/docs/reference/vppvagrant/VagrantVMSetup.rst index 769c6186170..f9f4304ed94 100644 --- a/docs/reference/vppvagrant/VagrantVMSetup.rst +++ b/docs/reference/vppvagrant/VagrantVMSetup.rst @@ -6,7 +6,7 @@ Accessing your VM ^^^^^^^^^^^^^^^^^ ssh into the newly created box: -.. code-block:: console +.. code-block:: shell $ vagrant ssh @@ -28,7 +28,7 @@ Sample output looks like: Become the root with: -.. code-block:: console +.. code-block:: shell $ sudo bash @@ -38,19 +38,19 @@ When you ssh into your Vagrant box you will be placed in the directory */home/va For Ubuntu systems: -.. code-block:: console +.. code-block:: shell # dpkg -i *.deb For CentOS systems: -.. code-block:: console +.. code-block:: shell # rpm -Uvh *.rpm Since VPP is now installed, you can start running VPP with: -.. code-block:: console +.. code-block:: shell - # service vpp start \ No newline at end of file + # service vpp start diff --git a/docs/reference/vppvagrant/boxSetup.rst b/docs/reference/vppvagrant/boxSetup.rst index d23033da856..374ba349458 100644 --- a/docs/reference/vppvagrant/boxSetup.rst +++ b/docs/reference/vppvagrant/boxSetup.rst @@ -82,7 +82,7 @@ __________ Once you're satisfied with your *Vagrantfile*, boot the box with: -.. code-block:: console +.. code-block:: shell $ vagrant up @@ -106,19 +106,19 @@ To confirm it is up, show the status and information of Vagrant boxes with: To poweroff your VM, type: - .. code-block:: console + .. code-block:: shell $ vagrant halt To resume your VM, type: - .. code-block:: console + .. code-block:: shell $ vagrant resume To destroy your VM, type: - .. code-block:: console + .. code-block:: shell $ vagrant destroy diff --git a/docs/reference/vppvagrant/installingVboxVagrant.rst b/docs/reference/vppvagrant/installingVboxVagrant.rst index 1bd4ba076d7..018ce6cfb53 100644 --- a/docs/reference/vppvagrant/installingVboxVagrant.rst +++ b/docs/reference/vppvagrant/installingVboxVagrant.rst @@ -15,7 +15,7 @@ If you're on CentOS, follow the `steps here mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1 @@ -42,7 +42,7 @@ Check if the interfaces are down or up: Make sure your loopback interface is up, and assign an IP and gateway to veth_link1. -.. code-block:: console +.. code-block:: shell root@cone:/# ip link set dev lo up root@cone:/# ip addr add 172.16.1.2/24 dev veth_link1 @@ -54,7 +54,7 @@ Here, the IP is 172.16.1.2/24 and the gateway is 172.16.1.1. Run some commands to verify the changes: -.. code-block:: console +.. code-block:: shell root@cone:/# ip -o a 1: lo inet 127.0.0.1/8 scope host lo\ valid_lft forever preferred_lft forever @@ -77,7 +77,7 @@ Now exit this container and repeat this process with container *ctwo*, except wi After thats done for *both* containers, exit from the container if you're in one: -.. code-block:: console +.. code-block:: shell root@ctwo:/# exit exit @@ -85,7 +85,7 @@ After thats done for *both* containers, exit from the container if you're in one In the machine running the containers, run **ip link** to see the host *veth* network interfaces, and their link with their respective *container veth's*. -.. code-block:: console +.. code-block:: shell root@localhost:~# ip link 1: lo: mtu 65536 qdisc noqueue state DOWN mode DEFAULT group default qlen 1 @@ -112,7 +112,7 @@ Remember our network interface index 32 in *cone* from this :ref:`note `_ you may find useful: - .. code-block:: console + .. code-block:: shell sudo lxc-ls --fancy sudo lxc-start --name u1 --daemon diff --git a/docs/usecases/containerSetup.rst b/docs/usecases/containerSetup.rst index e0fd81eebc3..d1c230daf24 100644 --- a/docs/usecases/containerSetup.rst +++ b/docs/usecases/containerSetup.rst @@ -9,14 +9,14 @@ Now we can go into container *cone* and install prerequisites such as VPP, and p To enter our container via the shell, type: -.. code-block:: console +.. code-block:: shell # lxc-attach -n cone root@cone:/# Run the linux DHCP setup and install VPP: -.. code-block:: console +.. code-block:: shell root@cone:/# resolvconf -d eth0 root@cone:/# dhclient @@ -28,13 +28,13 @@ Run the linux DHCP setup and install VPP: After this is done, start VPP in this container: -.. code-block:: console +.. code-block:: shell root@cone:/# service vpp start Exit this container with the **exit** command (you *may* need to run **exit** twice): -.. code-block:: console +.. code-block:: shell root@cone:/# exit exit -- cgit 1.2.3-korg