Fix all the config files alignment issues 15/45715/3
authorDeepak S <deepak.s@linux.intel.com>
Wed, 18 Oct 2017 20:16:11 +0000 (13:16 -0700)
committerDeepak S <deepak.s@linux.intel.com>
Wed, 18 Oct 2017 20:37:09 +0000 (13:37 -0700)
Change-Id: I087c9a9acf412a99f8425fd65d07db6c3b7a4af7
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
docs/testing/developer/design/04-SampleVNF_Design.rst
docs/testing/developer/design/images/l2l3-components.png [new file with mode: 0644]
docs/testing/developer/design/images/state-machine.png [new file with mode: 0644]
docs/testing/user/userguide/04-installation.rst
docs/testing/user/userguide/05-How_to_run_SampleVNFs.rst
docs/testing/user/userguide/06-How_to_use_REST_api.rst
docs/testing/user/userguide/07-Config_files.rst
tools/vnf_build.sh

index 2bcf625..a3332e2 100644 (file)
@@ -20,6 +20,9 @@ Introduction
 L2L3 stack comprises of a set of libraries which are commonly used by all
 other VNF's.
 
+.. image:: images/l2l3-components.png
+   :width: 800px
+
 It comprises of following components.
 
   * Interface Manager
@@ -27,7 +30,6 @@ It comprises of following components.
   * ARP/ND & L2 adjacency Library
   * L3 stack components
 
-
 Interface Manager
 -----------------
 
@@ -56,7 +58,8 @@ ARP/ND & L2 adjacency Library
 
 The ARP/ND state machine is given in the following diagram.
 
-.. image:: state-machine.png
+.. image:: images/state-machine.png
+   :width: 800px
 
 This library provides api's for handling ARP/ICMPv4 & ND/ICMPV6 packets
 handling. It provides api's for creating/deleting & populating an entry.
diff --git a/docs/testing/developer/design/images/l2l3-components.png b/docs/testing/developer/design/images/l2l3-components.png
new file mode 100644 (file)
index 0000000..751c4b7
Binary files /dev/null and b/docs/testing/developer/design/images/l2l3-components.png differ
diff --git a/docs/testing/developer/design/images/state-machine.png b/docs/testing/developer/design/images/state-machine.png
new file mode 100644 (file)
index 0000000..f0b0619
Binary files /dev/null and b/docs/testing/developer/design/images/state-machine.png differ
index a415b41..e54243c 100644 (file)
@@ -156,12 +156,15 @@ Auto Build - Using script to build VNFs
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      * Interactive options:
        ::
+
          ./tools/vnf_build.sh -i
-         Follow the steps in the screen from option [1] –> [9] and
-         select option [8] to build the vnfs.
+         Follow the steps in the screen from option [1] –> [10] and
+         select option [9] to build the vnfs.
          It will automatically download selected DPDK version and any
          required patches and will setup everything and build VNFs.
 
+         Options [8], If RestAPI feature is needed install 'civetweb'
+
          Following are the options for setup:
          ----------------------------------------------------------
          Step 1: Environment setup.
@@ -177,13 +180,14 @@ Auto Build - Using script to build VNFs
          [5] Download DPDK zip
          [6] Build and Install DPDK
          [7] Setup hugepages
+         [8] Download and Build civetweb
 
          ----------------------------------------------------------
          Step 3: Build VNFs
          ----------------------------------------------------------
-         [8] Build all VNFs (vACL, vCGNAPT, vFW, UDP_Replay, DPPD-PROX)
+         [9] Build all VNFs (vACL, vCGNAPT, vFW, UDP_Replay, DPPD-PROX)
 
-         [9] Exit Script
+         [10] Exit Script
 
      * non-Interactive options:
        ::
@@ -193,6 +197,7 @@ Manual Build
 ^^^^^^^^^^^^
 
    ::
+
       1. Download DPDK supported version from dpdk.org
          * http://dpdk.org/browse/dpdk/snapshot/dpdk-$DPDK_RTE_VER.zip
          * unzip dpdk-$DPDK_RTE_VER.zip and apply dpdk patches only in case of 16.04 (Not required for other DPDK versions)
index b087312..7ba25fe 100644 (file)
@@ -126,6 +126,7 @@ Step 0: Preparing hardware connection
     Connect Traffic generator and VNF system back to back as shown in previous section
 
     ::
+
         TRex port 0 ↔ (VNF Port 0) ↔ (VNF Port 1) ↔ TRex port 1
 
 Step 1: Setting up Traffic generator (TRex)
@@ -155,9 +156,13 @@ Auto Build
 * Interactive options:
 
 ::
+
    ./tools/vnf_build.sh -i
-   Follow the steps in the screen from option [1] –> [9] and select option [8] to build the vnfs.
+   Follow the steps in the screen from option [1] –> [10] and select option [9] to build the vnfs.
    It will automatically download selected DPDK version and any required patches and will setup everything and build VNFs.
+
+   Options [8], If RestAPI feature is needed install 'civetweb'
+
    Following are the options for setup:
    ----------------------------------------------------------
    Step 1: Environment setup.
@@ -173,7 +178,7 @@ Auto Build
    [5] Download DPDK zip
    [6] Build and Install DPDK
    [7] Setup hugepages
-   [8] Download civetweb
+   [8] Download and Build civetweb
 
    ----------------------------------------------------------
    Step 3: Build VNFs
@@ -186,6 +191,7 @@ Auto Build
 * Non-Interactive options:
 
 ::
+
    ./tools/vnf_build.sh -s -d=<dpdk version eg 17.02>
    if system is behind the proxy
    ./tools/vnf_build.sh -s -d=<dpdk version eg 17.02> -p=<proxy>
@@ -194,45 +200,41 @@ Manual Build
 ^^^^^^^^^^^^
 
 ::
+
    1) Download DPDK supported version from dpdk.org
-      http://dpdk.org/browse/dpdk/snapshot/dpdk-$DPDK_RTE_VER.zip
-      unzip dpdk-$DPDK_RTE_VER.zip and apply dpdk patches only in case of 16.04 (Not required for other DPDK versions)
-      cd dpdk
-      make config T=x86_64-native-linuxapp-gcc O=x86_64-native-linuxapp-gcc
-      cd x86_64-native-linuxapp-gcc
-      make
+      http://dpdk.org/browse/dpdk/snapshot/dpdk-$DPDK_RTE_VER.zip
+      unzip dpdk-$DPDK_RTE_VER.zip and apply dpdk patches only in case of 16.04 (Not required for other DPDK versions)
+      cd dpdk
+      make config T=x86_64-native-linuxapp-gcc O=x86_64-native-linuxapp-gcc
+      cd x86_64-native-linuxapp-gcc
+      make
 
    2) Download civetweb 1.9 version from the following link
-      https://sourceforge.net/projects/civetweb/files/1.9/CivetWeb_V1.9.zip
-      unzip CivetWeb_V1.9.zip
-      mv civetweb-master civetweb
-      cd civetweb
-      make lib
-
-   3) Setup huge pages
-      For 1G/2M hugepage sizes, for example 1G pages, the size must be
-      specified explicitly and can also be optionally set as the
-      default hugepage size for the system. For example, to reserve 8G
-      of hugepage memory in the form of eight 1G pages, the following
-      options should be passed to the kernel: * default_hugepagesz=1G
-      hugepagesz=1G hugepages=8 hugepagesz=2M hugepages=2048
-   4) Add this to Go to /etc/default/grub configuration file.
-      Append “default_hugepagesz=1G hugepagesz=1G hugepages=8 hugepagesz=2M hugepages=2048”
-      to the GRUB_CMDLINE_LINUX entry.
-   5) Setup Environment Variable
-      export RTE_SDK=<samplevnf>/dpdk
-      export RTE_TARGET=x86_64-native-linuxapp-gcc
-      export VNF_CORE=<samplevnf>
-      or using ./tools/setenv.sh
-   6) Build VNFs
-      cd <samplevnf>
-      make
-      or to build individual VNFs
-        cd <samplevnf>/VNFs/
-        make clean
-        make
-        The vFW executable will be created at the following location
-        <samplevnf>/VNFs/vFW/build/vFW
+      * https://sourceforge.net/projects/civetweb/files/1.9/CivetWeb_V1.9.zip
+      * unzip CivetWeb_V1.9.zip
+      * mv civetweb-master civetweb
+      * cd civetweb
+      * make lib
+
+   3) Add this to Go to /etc/default/grub configuration file to setup higepages.
+      * Append “default_hugepagesz=1G hugepagesz=1G hugepages=8 hugepagesz=2M hugepages=2048” to the GRUB_CMDLINE_LINUX entry.
+      * execute update-grub
+      * Reboot after grub setup
+
+   4) Setup Environment Variable
+      * export RTE_SDK=<samplevnf>/dpdk
+      * export RTE_TARGET=x86_64-native-linuxapp-gcc
+      * export VNF_CORE=<samplevnf> or using ./tools/setenv.sh
+
+   5) Build VNFs
+      * cd <samplevnf>
+      * make
+      * or To build individual VNFs
+        * cd <samplevnf>/VNFs/
+        * make clean
+        * make
+        * The vFW executable will be created at the following location
+        * <samplevnf>/VNFs/vFW/build/vFW
 
 
 Virtual Firewall - How to run
@@ -456,14 +458,17 @@ Step 3: Bind the datapath ports to DPDK
     ./build/vCGNAPT -p 0x3 -f ./config/sample_swlb_2port_2WT.cfg  -s ./config/sample_swlb_2port_2WT.tc
 
  d) Run UDP_replay to reflect the traffic on public side.
+
+  ::
+
     cmd: ./build/UDP_Replay -c 0x7 -n 4 -w <pci> -w <pci> -- --no-hw-csum -p <portmask> --config='(port, queue, cpucore)'
     e.g ./build/UDP_Replay -c 0x7 -n 4 -w 0000:07:00.0 -w 0000:07:00.1 -- --no-hw-csum -p 0x3 --config='(0, 0, 1)(1, 0, 2)'
 
 step 4: Run Test using traffic geneator
 
-    On traffic generator system:
-
+ On traffic generator system:
  ::
+
     cd <trex eg v2.28/stl>
     Update the bench.py to generate the traffic.
 
index 64c68a4..b8c0cbe 100644 (file)
@@ -158,10 +158,12 @@ need to be set before launching the application(To be run from
 samplevnf directory).
 
    ::
+
      ./build/vFW (Without the -f & -s option)
 
 1. When VNF(vCGNAPT/vACL/vFW) is launched it waits for user to provide the /vnf/config REST method.
    ::
+
     e.g curl -X POST -H "Content-Type:application/json" -d '{"pci_white_list": "0000:08:00.0 0000:08:00.1"}' http://<IP>/vnf/config
 
     Note: the config is mostly implemented based on existing VNF's. if new parameters
index 4f3811e..d5564e8 100644 (file)
@@ -29,6 +29,7 @@ of the VNFs.
 1. SWLB, IPv4, Single Port Pair, 1WT:
 
   ::
+
     [EAL]
     w = 05:00.0
     w = 05:00.1
@@ -100,6 +101,7 @@ of the VNFs.
 This configuration doesn't require LOADB and TXRX pipelines
 
 ::
+
   [EAL]
   w = 05:00.0
   w = 05:00.1
index f60a364..0a085a6 100755 (executable)
@@ -135,7 +135,7 @@ step_2()
        FUNC[4]="install_dpdk"
        TEXT[5]="Setup hugepages"
        FUNC[5]="setup_hugepages"
-       TEXT[6]="Download civetweb"
+       TEXT[6]="Download and Build civetweb"
        FUNC[6]="download_civetweb_zip"
 }
 get_agreement_download()