diff options
Diffstat (limited to 'doc/book-enea-nfv-access-system-test-specification/doc/sample_test_cases.xml')
-rw-r--r-- | doc/book-enea-nfv-access-system-test-specification/doc/sample_test_cases.xml | 265 |
1 files changed, 221 insertions, 44 deletions
diff --git a/doc/book-enea-nfv-access-system-test-specification/doc/sample_test_cases.xml b/doc/book-enea-nfv-access-system-test-specification/doc/sample_test_cases.xml index ab611a1..3443883 100644 --- a/doc/book-enea-nfv-access-system-test-specification/doc/sample_test_cases.xml +++ b/doc/book-enea-nfv-access-system-test-specification/doc/sample_test_cases.xml | |||
@@ -141,10 +141,6 @@ vnfd=<VNF-Descriptor-name>"</programlisting></para> | |||
141 | <para><emphasis role="bold">Precondition:</emphasis> The image path must | 141 | <para><emphasis role="bold">Precondition:</emphasis> The image path must |
142 | already exist.</para> | 142 | already exist.</para> |
143 | 143 | ||
144 | <para><emphasis role="bold">Example:</emphasis> <programlisting>ansible-playbook playbooks/uploadImage.yml -e \ | ||
145 | image_path="/tmp/enea-nfv-access-xeon-d6.rootfs.ostree.tar.bz2" -e \ | ||
146 | upgrade_type="xeon_d"</programlisting></para> | ||
147 | |||
148 | <para><emphasis role="bold">Action:</emphasis> Run the | 144 | <para><emphasis role="bold">Action:</emphasis> Run the |
149 | <filename>uploadImage.yml</filename> Ansible playbook with the | 145 | <filename>uploadImage.yml</filename> Ansible playbook with the |
150 | <filename><Image-path></filename> and | 146 | <filename><Image-path></filename> and |
@@ -153,6 +149,10 @@ upgrade_type="xeon_d"</programlisting></para> | |||
153 | <para><programlisting>ansible-playbook playbooks/deleteUpgradeFile.yml -e \ | 149 | <para><programlisting>ansible-playbook playbooks/deleteUpgradeFile.yml -e \ |
154 | image_path="<Image-path>" -e upgrade_type="<Upgrade-type>"</programlisting></para> | 150 | image_path="<Image-path>" -e upgrade_type="<Upgrade-type>"</programlisting></para> |
155 | 151 | ||
152 | <para><emphasis role="bold">Example:</emphasis> <programlisting>ansible-playbook playbooks/uploadImage.yml -e \ | ||
153 | image_path="/tmp/enea-nfv-access-xeon-d6.rootfs.ostree.tar.bz2" -e \ | ||
154 | upgrade_type="xeon_d"</programlisting></para> | ||
155 | |||
156 | <para><emphasis role="bold">Result:</emphasis> Output of the test case | 156 | <para><emphasis role="bold">Result:</emphasis> Output of the test case |
157 | run using the Test Harness:</para> | 157 | run using the Test Harness:</para> |
158 | 158 | ||
@@ -188,16 +188,14 @@ A file with the same name is already uploaded.</programlisting></para> | |||
188 | <para><emphasis role="bold">Preconditions:</emphasis> The image file | 188 | <para><emphasis role="bold">Preconditions:</emphasis> The image file |
189 | must already be uploaded onto the uCPE Manager.</para> | 189 | must already be uploaded onto the uCPE Manager.</para> |
190 | 190 | ||
191 | <para><emphasis role="bold">Example:</emphasis></para> | ||
192 | |||
193 | <programlisting>ansible-playbook playbooks/deleteUpgradeFile.yml -e \ | ||
194 | image_name="enea-nfv-access-xeon-d.rootfs.ostree.tar.bz2"</programlisting> | ||
195 | |||
196 | <para><emphasis role="bold">Action:</emphasis> Run the | 191 | <para><emphasis role="bold">Action:</emphasis> Run the |
197 | <filename>deleteUpgradeFile.yml</filename> Ansible Playbook with the | 192 | <filename>deleteUpgradeFile.yml</filename> Ansible Playbook with the |
198 | <literal><Image-name></literal> as extra-vars:<programlisting>ansible-playbook playbooks/deleteUpgradeFile.yml -e \ | 193 | <literal><Image-name></literal> as extra-vars:<programlisting>ansible-playbook playbooks/deleteUpgradeFile.yml -e \ |
199 | image_name="<Image-name>"</programlisting></para> | 194 | image_name="<Image-name>"</programlisting></para> |
200 | 195 | ||
196 | <para><emphasis role="bold">Example:</emphasis> <programlisting>ansible-playbook playbooks/deleteUpgradeFile.yml -e \ | ||
197 | image_name="enea-nfv-access-xeon-d.rootfs.ostree.tar.bz2"</programlisting></para> | ||
198 | |||
201 | <para><emphasis role="bold">Result:</emphasis> Output of the test case | 199 | <para><emphasis role="bold">Result:</emphasis> Output of the test case |
202 | run using the Test Harness:<programlisting>TASK [Remove NFVA image -- Run deleteUpgradeFile.py module from automation_framework] | 200 | run using the Test Harness:<programlisting>TASK [Remove NFVA image -- Run deleteUpgradeFile.py module from automation_framework] |
203 | localhost : ok=1 changed=1 unreachable=0 failed=0</programlisting> | 201 | localhost : ok=1 changed=1 unreachable=0 failed=0</programlisting> |
@@ -267,12 +265,6 @@ localhost : ok=1 changed=1 unreachable=0 failed=0</pro | |||
267 | </listitem> | 265 | </listitem> |
268 | </itemizedlist></para> | 266 | </itemizedlist></para> |
269 | 267 | ||
270 | <para><emphasis role="bold">Example:</emphasis></para> | ||
271 | |||
272 | <programlisting>ansible-playbook playbooks/installAndActivate.yml -e \ | ||
273 | image_name="enea-nfv-access-xeon-d6.rootfs.ostree.tar.bz2" -e \ | ||
274 | upgrade_type=xeon_d -e device=inteld1521-16"</programlisting> | ||
275 | |||
276 | <para><emphasis role="bold">Action:</emphasis> Run the | 268 | <para><emphasis role="bold">Action:</emphasis> Run the |
277 | <filename>installAndActivate.yml</filename> Ansible Playbook with the | 269 | <filename>installAndActivate.yml</filename> Ansible Playbook with the |
278 | <literal><Image-name></literal>, | 270 | <literal><Image-name></literal>, |
@@ -281,6 +273,10 @@ upgrade_type=xeon_d -e device=inteld1521-16"</programlisting> | |||
281 | image_name="<Image_name>" -e upgrade_type="<Upgrade_type>" -e \ | 273 | image_name="<Image_name>" -e upgrade_type="<Upgrade_type>" -e \ |
282 | device="<Device-name>"</programlisting></para> | 274 | device="<Device-name>"</programlisting></para> |
283 | 275 | ||
276 | <para><emphasis role="bold">Example:</emphasis> <programlisting>ansible-playbook playbooks/installAndActivate.yml -e \ | ||
277 | image_name="enea-nfv-access-xeon-d6.rootfs.ostree.tar.bz2" -e \ | ||
278 | upgrade_type=xeon_d -e device=inteld1521-16"</programlisting></para> | ||
279 | |||
284 | <para><emphasis role="bold">Result:</emphasis> Output of the test case | 280 | <para><emphasis role="bold">Result:</emphasis> Output of the test case |
285 | run using the Test Harness:<programlisting>TASK \ | 281 | run using the Test Harness:<programlisting>TASK \ |
286 | [Install And Activate -- Run installAndActivate.py module from automation_framework] | 282 | [Install And Activate -- Run installAndActivate.py module from automation_framework] |
@@ -311,10 +307,6 @@ Duplicate entry - Release already installed</programlisting></para> | |||
311 | <para>The playbook imports the previously described | 307 | <para>The playbook imports the previously described |
312 | playbooks:<itemizedlist spacing="compact"> | 308 | playbooks:<itemizedlist spacing="compact"> |
313 | <listitem> | 309 | <listitem> |
314 | <para><filename>playbook/addDevice.yml</filename></para> | ||
315 | </listitem> | ||
316 | |||
317 | <listitem> | ||
318 | <para><filename>playbook/uploadImage.yml</filename></para> | 310 | <para><filename>playbook/uploadImage.yml</filename></para> |
319 | </listitem> | 311 | </listitem> |
320 | 312 | ||
@@ -329,24 +321,23 @@ Duplicate entry - Release already installed</programlisting></para> | |||
329 | <listitem> | 321 | <listitem> |
330 | <para><filename>playbook/clearCompletedUpgradesInfo.yml</filename></para> | 322 | <para><filename>playbook/clearCompletedUpgradesInfo.yml</filename></para> |
331 | </listitem> | 323 | </listitem> |
332 | |||
333 | <listitem> | ||
334 | <para><filename>playbook/removeDevice.yml</filename></para> | ||
335 | </listitem> | ||
336 | </itemizedlist></para> | 324 | </itemizedlist></para> |
337 | </listitem> | 325 | </listitem> |
338 | </itemizedlist> | 326 | </itemizedlist> |
339 | 327 | ||
340 | <para><emphasis role="bold">Precondition:</emphasis> A device JSON | 328 | <para><emphasis role="bold">Preconditions:</emphasis></para> |
341 | configuration file must be created:<programlisting><AF-TH-install-dir>/lab_config/<Device-name>/<Device-name>.json</programlisting></para> | ||
342 | 329 | ||
343 | <para><emphasis role="bold">Example:</emphasis></para> | 330 | <itemizedlist> |
331 | <listitem> | ||
332 | <para>The device has to be previously added to the uCPE Manager | ||
333 | instance.</para> | ||
334 | </listitem> | ||
344 | 335 | ||
345 | <programlisting>ansible-playbook playbooks/installNFVAImage.yml -e \ | 336 | <listitem> |
346 | device="inteld1521-16" -e \ | 337 | <para>A device JSON configuration file must be created: |
347 | image_path=/tmp/enea-nfv-access-xeon-d5.rootfs.ostree.tar.bz2 -e \ | 338 | <programlisting><AF-TH-install-dir>/lab_config/<Device-name>/<Device-name>.json</programlisting></para> |
348 | image_name=enea-nfv-access-xeon-d5.rootfs.ostree.tar.bz2 -e \ | 339 | </listitem> |
349 | upgrade_type=xeon_d</programlisting> | 340 | </itemizedlist> |
350 | 341 | ||
351 | <para><emphasis role="bold">Action:</emphasis> Run the | 342 | <para><emphasis role="bold">Action:</emphasis> Run the |
352 | <filename>installNFVAImage.yml</filename> Ansible Playbook with the | 343 | <filename>installNFVAImage.yml</filename> Ansible Playbook with the |
@@ -357,6 +348,12 @@ upgrade_type=xeon_d</programlisting> | |||
357 | device="<Device-name>" -e image_path="<Image-path>" -e \ | 348 | device="<Device-name>" -e image_path="<Image-path>" -e \ |
358 | image_name="<Image-name>" -e upgrade_type="<Upgrade-type>"</programlisting></para> | 349 | image_name="<Image-name>" -e upgrade_type="<Upgrade-type>"</programlisting></para> |
359 | 350 | ||
351 | <para><emphasis role="bold">Example:</emphasis> <programlisting>ansible-playbook playbooks/installNFVAImage.yml -e \ | ||
352 | device="inteld1521-16" -e \ | ||
353 | image_path=/tmp/enea-nfv-access-xeon-d5.rootfs.ostree.tar.bz2 -e \ | ||
354 | image_name=enea-nfv-access-xeon-d5.rootfs.ostree.tar.bz2 -e \ | ||
355 | upgrade_type=xeon_d</programlisting></para> | ||
356 | |||
360 | <para><emphasis role="bold">Result:</emphasis> Output of the test case | 357 | <para><emphasis role="bold">Result:</emphasis> Output of the test case |
361 | run using the Test Harness:<programlisting>localhost : ok=1 changed=1 unreachable=0 failed=0</programlisting> | 358 | run using the Test Harness:<programlisting>localhost : ok=1 changed=1 unreachable=0 failed=0</programlisting> |
362 | <emphasis role="bold">Note:</emphasis> The test will fail if the one | 359 | <emphasis role="bold">Note:</emphasis> The test will fail if the one |
@@ -595,7 +592,8 @@ image_name="<Image-name>" -e upgrade_type="<Upgrade-type>"</programl | |||
595 | 592 | ||
596 | <para><emphasis role="bold">Preconditions:</emphasis><itemizedlist> | 593 | <para><emphasis role="bold">Preconditions:</emphasis><itemizedlist> |
597 | <listitem> | 594 | <listitem> |
598 | <para>A Bridge exists in a uCPE Manager instance.</para> | 595 | <para>A Bridge exists for a device in a uCPE Manager |
596 | instance.</para> | ||
599 | </listitem> | 597 | </listitem> |
600 | 598 | ||
601 | <listitem> | 599 | <listitem> |
@@ -623,7 +621,7 @@ bridge=<Bridge-name>"</programlisting></para> | |||
623 | 621 | ||
624 | <itemizedlist> | 622 | <itemizedlist> |
625 | <listitem> | 623 | <listitem> |
626 | <para><filename><AF-TH-install-dir>/playbooks/network/configDPDK.yml</filename>.</para> | 624 | <para><filename><AF-TH-install-dir>/playbooks/configDPDK.yml</filename>.</para> |
627 | </listitem> | 625 | </listitem> |
628 | 626 | ||
629 | <listitem> | 627 | <listitem> |
@@ -670,15 +668,15 @@ DEBUG: Set DPDK state to <enable/disable></programlisting><emphasis | |||
670 | 668 | ||
671 | <para><emphasis role="bold">Precondition:</emphasis></para> | 669 | <para><emphasis role="bold">Precondition:</emphasis></para> |
672 | 670 | ||
673 | <para><literal>lab_config/customScripts</literal> must contain a Custom | 671 | <para><literal><AF-TH-install-dir>/lab_config/customScripts</literal> |
674 | Script file.</para> | 672 | must contain a Custom Script file.</para> |
675 | 673 | ||
676 | <para><emphasis role="bold">Action:</emphasis> Run the | 674 | <para><emphasis role="bold">Action:</emphasis> Run the |
677 | <filename>uploadCustomScript.yml</filename> Ansible Playbook with the | 675 | <filename>uploadCustomScript.yml</filename> Ansible Playbook with the |
678 | <literal><scriptName></literal> and | 676 | <literal><scriptName></literal> and |
679 | <literal><phase></literal> as extra-vars: <programlisting>ansible-playbook playbooks/uploadCustomScript.yml -e "scriptName=<scriptName> \ | 677 | <literal><phase></literal> as extra-vars: <programlisting>ansible-playbook playbooks/uploadCustomScript.yml -e "scriptName=<scriptName> \ |
680 | phase= | 678 | phase= |
681 | <always-after-startup/once-after-startup/always-before-startup/once-before-startup>"</programlisting></para> | 679 | <always-after-startup|once-after-startup|always-before-startup|once-before-startup>"</programlisting></para> |
682 | 680 | ||
683 | <para><emphasis role="bold">Result:</emphasis> Output of the test case | 681 | <para><emphasis role="bold">Result:</emphasis> Output of the test case |
684 | run using the Test Harness:</para> | 682 | run using the Test Harness:</para> |
@@ -725,7 +723,7 @@ DEBUG: "{{ scriptName }} was uploaded to uCPE Manager!"</programlisting> | |||
725 | <literal><phase></literal> and | 723 | <literal><phase></literal> and |
726 | <literal><deviceName></literal> as extra-vars: <programlisting>ansible-playbook playbooks/uploadCustomScriptOnDevice.yml -e "scriptName=<scriptName> \ | 724 | <literal><deviceName></literal> as extra-vars: <programlisting>ansible-playbook playbooks/uploadCustomScriptOnDevice.yml -e "scriptName=<scriptName> \ |
727 | phase= | 725 | phase= |
728 | <always-after-startup/once-after-startup/always-before-startup/once-before-startup> \ | 726 | <always-after-startup|once-after-startup|always-before-startup|once-before-startup> \ |
729 | device=<deviceName>"</programlisting></para> | 727 | device=<deviceName>"</programlisting></para> |
730 | 728 | ||
731 | <para><emphasis role="bold">Result:</emphasis> Output of the test case | 729 | <para><emphasis role="bold">Result:</emphasis> Output of the test case |
@@ -762,7 +760,7 @@ DEBUG: "{{ scriptName }} was uploaded to {{ device }}!"</programlisting> | |||
762 | <literal><scriptName></literal> and | 760 | <literal><scriptName></literal> and |
763 | <literal><phase></literal> as extra-vars: <programlisting>ansible-playbook playbooks/removeCustomScript.yml -e "scriptName=<scriptName> \ | 761 | <literal><phase></literal> as extra-vars: <programlisting>ansible-playbook playbooks/removeCustomScript.yml -e "scriptName=<scriptName> \ |
764 | phase= | 762 | phase= |
765 | <always-after-startup/once-after-startup/always-before-startup/once-before-startup>"</programlisting></para> | 763 | <always-after-startup|once-after-startup|always-before-startup|once-before-startup>"</programlisting></para> |
766 | 764 | ||
767 | <para><emphasis role="bold">Result:</emphasis> Output of the test case | 765 | <para><emphasis role="bold">Result:</emphasis> Output of the test case |
768 | run using the Test Harness:</para> | 766 | run using the Test Harness:</para> |
@@ -804,10 +802,10 @@ DEBUG: "{{ scriptName }} from phase {{ phase }} was removed from uCPE Manager!"< | |||
804 | <para><emphasis role="bold">Action:</emphasis> Run the | 802 | <para><emphasis role="bold">Action:</emphasis> Run the |
805 | <filename>removeCustomScriptOnDevice.yml</filename> Ansible Playbook | 803 | <filename>removeCustomScriptOnDevice.yml</filename> Ansible Playbook |
806 | with the <literal><scriptName></literal>, | 804 | with the <literal><scriptName></literal>, |
807 | <literal><phase></literal> and and | 805 | <literal><phase></literal> and |
808 | <literal><deviceName></literal> as extra-vars: <programlisting>ansible-playbook playbooks/removeCustomScriptOnDevice.yml -e "scriptName=<scriptName> \ | 806 | <literal><deviceName></literal> as extra-vars: <programlisting>ansible-playbook playbooks/removeCustomScriptOnDevice.yml -e "scriptName=<scriptName> \ |
809 | phase= | 807 | phase= |
810 | <always-after-startup/once-after-startup/always-before-startup/once-before-startup> \ | 808 | <always-after-startup|once-after-startup|always-before-startup|once-before-startup> \ |
811 | device=<deviceName>"</programlisting></para> | 809 | device=<deviceName>"</programlisting></para> |
812 | 810 | ||
813 | <para><emphasis role="bold">Result:</emphasis> Output of the test case | 811 | <para><emphasis role="bold">Result:</emphasis> Output of the test case |
@@ -816,6 +814,169 @@ device=<deviceName>"</programlisting></para> | |||
816 | <programlisting># Remove Custom Script in phase from Device task result | 814 | <programlisting># Remove Custom Script in phase from Device task result |
817 | DEBUG: "{{ scriptName }} from phase {{ phase }} was removed from {{ device }}!"</programlisting> | 815 | DEBUG: "{{ scriptName }} from phase {{ phase }} was removed from {{ device }}!"</programlisting> |
818 | </section> | 816 | </section> |
817 | |||
818 | <section id="add_offline_config"> | ||
819 | <title>Offline Configuration - Add an Offline Configuration | ||
820 | Store</title> | ||
821 | |||
822 | <para><emphasis role="bold">Description:</emphasis> Adding an Offline | ||
823 | Config Store to the uCPE Manager. For details please refer to:</para> | ||
824 | |||
825 | <itemizedlist> | ||
826 | <listitem> | ||
827 | <para><filename><AF-TH-install-dir>/playbooks/addConfigStore.yml</filename>.</para> | ||
828 | </listitem> | ||
829 | |||
830 | <listitem> | ||
831 | <para><filename><AF-TH-install-dir>/automation_framework/device/addConfigStore.py</filename>.</para> | ||
832 | </listitem> | ||
833 | </itemizedlist> | ||
834 | |||
835 | <para><emphasis role="bold">Precondition:</emphasis></para> | ||
836 | |||
837 | <para>The Offline Configuration Store should not already exist on the | ||
838 | uCPE Manager. If it exists, the test will report a duplicate.</para> | ||
839 | |||
840 | <para><emphasis role="bold">Action:</emphasis> Run the | ||
841 | <filename>addConfigStore.yml</filename> Ansible Playbook with the | ||
842 | <literal><device-name></literal> as extra-vars: <programlisting>ansible-playbook playbooks/addConfigStore.yml -e \ | ||
843 | "device=<device-name>"</programlisting></para> | ||
844 | |||
845 | <para><emphasis role="bold">Result:</emphasis> Output of the test case | ||
846 | run using the Test Harness:</para> | ||
847 | |||
848 | <programlisting># Add Config Store task result | ||
849 | ********************************************************** | ||
850 | ********************************** | ||
851 | * localhost - changed=False | ||
852 | -------------------------------------------------- | ||
853 | Config store for intelc3850-2 device was added!</programlisting> | ||
854 | </section> | ||
855 | |||
856 | <section id="remove_offline_config"> | ||
857 | <title>Offline Configuration - Remove an Offline Configuration | ||
858 | Store</title> | ||
859 | |||
860 | <para><emphasis role="bold">Description:</emphasis> Removing an Offline | ||
861 | Config Store from the uCPE Manager. For details please refer to:</para> | ||
862 | |||
863 | <itemizedlist> | ||
864 | <listitem> | ||
865 | <para><filename><AF-TH-install-dir>/playbooks/removeConfigStore.yml</filename>.</para> | ||
866 | </listitem> | ||
867 | |||
868 | <listitem> | ||
869 | <para><filename><AF-TH-install-dir>/automation_framework/device/removeConfigStore.py</filename>.</para> | ||
870 | </listitem> | ||
871 | </itemizedlist> | ||
872 | |||
873 | <para><emphasis role="bold">Precondition:</emphasis></para> | ||
874 | |||
875 | <para>The Offline Configuration Store the user wishes to remove should | ||
876 | exist in the uCPE Manager. If it does not, the test will say so.</para> | ||
877 | |||
878 | <para><emphasis role="bold">Action:</emphasis> Run the | ||
879 | <filename>removeConfigStore.yml</filename> Ansible Playbook with the | ||
880 | <literal><store-name></literal> as extra-vars: <programlisting>ansible-playbook playbooks/removeConfigStore.yml -e \ | ||
881 | "store=<store-name>"</programlisting></para> | ||
882 | |||
883 | <para><emphasis role="bold">Result:</emphasis> Output of the test case | ||
884 | run using the Test Harness:</para> | ||
885 | |||
886 | <programlisting># Remove Config Store task result ********************************** | ||
887 | ******************************************************* | ||
888 | * localhost - changed=False | ||
889 | -- intelc3850-2 config store was removed! ---------</programlisting> | ||
890 | </section> | ||
891 | |||
892 | <section id="offline_config_add_bridge"> | ||
893 | <title>Offline Configuration - Add a network bridge to an Offline | ||
894 | Configuration Store</title> | ||
895 | |||
896 | <para><emphasis role="bold">Description:</emphasis> Adding a network | ||
897 | bridge to an Offline Config Store in uCPE Manager. For details please | ||
898 | refer to:</para> | ||
899 | |||
900 | <itemizedlist> | ||
901 | <listitem> | ||
902 | <para><filename><AF-TH-install-dir>/playbooks/addOfflineBridge.yml</filename>.</para> | ||
903 | </listitem> | ||
904 | |||
905 | <listitem> | ||
906 | <para><filename><AF-TH-install-dir>/automation_framework/network/newNetworkBridge.py</filename>.</para> | ||
907 | </listitem> | ||
908 | </itemizedlist> | ||
909 | |||
910 | <para><emphasis role="bold">Precondition:</emphasis></para> | ||
911 | |||
912 | <para>The Offline Configuration Store should exist in the uCPE Manager. | ||
913 | If it does not, the test will say so.</para> | ||
914 | |||
915 | <para><emphasis role="bold">Action:</emphasis> Run the | ||
916 | <filename>addOfflineBridge.yml</filename> Ansible Playbook with the | ||
917 | <literal><device-name></literal>, | ||
918 | <literal><store-name></literal> and | ||
919 | <literal><bridge-name></literal> as extra-vars: <programlisting>ansible-playbook playbooks/addOfflineBridge.yml -e \ | ||
920 | "device=<device-name> store=<store-name> bridge=<bridge-name>"</programlisting></para> | ||
921 | |||
922 | <para><emphasis role="bold">Result:</emphasis> Output of the test case | ||
923 | run using the Test Harness:</para> | ||
924 | |||
925 | <programlisting># debug ************************************************************* | ||
926 | ****************************************************** | ||
927 | * localhost - changed=False | ||
928 | -------------------------------------------------- | ||
929 | lan_br bridge already exists | ||
930 | --- will be deleted to create it with the provided configuration | ||
931 | .. | ||
932 | # Add Bridge task result ******************************************** | ||
933 | ****************************************************** | ||
934 | * localhost - changed=False | ||
935 | -- lan_br network bridge was added! ------------</programlisting> | ||
936 | |||
937 | <para><emphasis role="bold">Note:</emphasis> if the bridge exists, it | ||
938 | will be removed and then re-added, as the output above shows.</para> | ||
939 | </section> | ||
940 | |||
941 | <section id="offline_config_dpdk"> | ||
942 | <title>Offline Configuration - Configure a DPDK</title> | ||
943 | |||
944 | <para><emphasis role="bold">Description:</emphasis> Adding an "enable" | ||
945 | or "disable" DPDK state to an Offline Config Store. For details please | ||
946 | refer to:</para> | ||
947 | |||
948 | <itemizedlist> | ||
949 | <listitem> | ||
950 | <para><filename><AF-TH-install-dir>/playbooks/configOfflineDPDK.yml</filename>.</para> | ||
951 | </listitem> | ||
952 | |||
953 | <listitem> | ||
954 | <para><filename><AF-TH-install-dir>/automation_framework/network/configDPDK.py</filename>.</para> | ||
955 | </listitem> | ||
956 | </itemizedlist> | ||
957 | |||
958 | <para><emphasis role="bold">Precondition:</emphasis></para> | ||
959 | |||
960 | <para>An empty Offline Configuration Store should exist in uCPE | ||
961 | Manager.</para> | ||
962 | |||
963 | <para><emphasis role="bold">Action:</emphasis> Run the | ||
964 | <filename>configOfflineDPDK.yml</filename> Ansible Playbook with the | ||
965 | <literal><store-name></literal> and | ||
966 | <literal><enable/disable></literal> as extra-vars: | ||
967 | <programlisting>ansible-playbook playbooks/configOfflineDPDK.yml -e \ | ||
968 | "store=<store-name> state=<enable/disable>"</programlisting></para> | ||
969 | |||
970 | <para><emphasis role="bold">Result:</emphasis> Output of the test case | ||
971 | run using the Test Harness:</para> | ||
972 | |||
973 | <programlisting>DEBUG: Set DPDK state to disable | ||
974 | INFO: Done</programlisting> | ||
975 | |||
976 | <para><emphasis role="bold">Note:</emphasis> the DPDK state cannot be | ||
977 | changed. Recreate the Offline Config Store and set the DPDK again if you | ||
978 | want to change the state.</para> | ||
979 | </section> | ||
819 | </section> | 980 | </section> |
820 | 981 | ||
821 | <section id="vnf_deploy_lifecycle"> | 982 | <section id="vnf_deploy_lifecycle"> |
@@ -895,8 +1056,7 @@ vnfd=<VNF-Descriptor-name> vnfi=<VNFI-name>"</programlisting></para> | |||
895 | <literal><Device-name></literal>, | 1056 | <literal><Device-name></literal>, |
896 | <literal><VNFI-name></literal> and the | 1057 | <literal><VNFI-name></literal> and the |
897 | <literal><Command></literal> as extra-vars: <programlisting>ansible-playbook playbooks/controlVNFI.yml -e "device=<Device-name> \ | 1058 | <literal><Command></literal> as extra-vars: <programlisting>ansible-playbook playbooks/controlVNFI.yml -e "device=<Device-name> \ |
898 | vnfi=<VNFI-name> status=<Command>"</programlisting>Where Command = | 1059 | vnfi=<VNFI-name> status=<pause|resume|start|stop>"</programlisting></para> |
899 | { pause | resume | stop | start }</para> | ||
900 | 1060 | ||
901 | <para><emphasis role="bold">Result:</emphasis> Output of the test case | 1061 | <para><emphasis role="bold">Result:</emphasis> Output of the test case |
902 | run using the Test Harness: <programlisting># Change VNFI Status task result | 1062 | run using the Test Harness: <programlisting># Change VNFI Status task result |
@@ -1036,9 +1196,15 @@ vnfi=<VNFI-name>"</programlisting><emphasis | |||
1036 | 1196 | ||
1037 | <itemizedlist> | 1197 | <itemizedlist> |
1038 | <listitem> | 1198 | <listitem> |
1199 | <para>A device must have been previously added and connected to | ||
1200 | the uCPE Manager instance.</para> | ||
1201 | </listitem> | ||
1202 | |||
1203 | <listitem> | ||
1039 | <para>Add the Fortigate VNF Image | 1204 | <para>Add the Fortigate VNF Image |
1040 | (<filename>fortios.qcow2</filename>) to the | 1205 | (<filename>fortios.qcow2</filename>) to the |
1041 | <literal>vnf_image</literal> folder.</para> | 1206 | <literal><AF-TH-install-dir>/vnf_image</literal> |
1207 | folder.</para> | ||
1042 | </listitem> | 1208 | </listitem> |
1043 | 1209 | ||
1044 | <listitem> | 1210 | <listitem> |
@@ -1154,9 +1320,15 @@ FortigateFWInstance tested successfully!</programlisting></para> | |||
1154 | 1320 | ||
1155 | <itemizedlist> | 1321 | <itemizedlist> |
1156 | <listitem> | 1322 | <listitem> |
1323 | <para>A device must have been previously added and connected to | ||
1324 | the uCPE Manager instance.</para> | ||
1325 | </listitem> | ||
1326 | |||
1327 | <listitem> | ||
1157 | <para>Add the FortiGate VNF Image | 1328 | <para>Add the FortiGate VNF Image |
1158 | (<filename>fortios.qcow2</filename>) to the | 1329 | (<filename>fortios.qcow2</filename>) to the |
1159 | <literal>vnf_image</literal> folder.</para> | 1330 | <literal><AF-TH-install-dir>/vnf_image</literal> |
1331 | folder.</para> | ||
1160 | </listitem> | 1332 | </listitem> |
1161 | 1333 | ||
1162 | <listitem> | 1334 | <listitem> |
@@ -1267,6 +1439,11 @@ FortigateFW Scenario deployed successfully!</programlisting></para> | |||
1267 | 1439 | ||
1268 | <itemizedlist> | 1440 | <itemizedlist> |
1269 | <listitem> | 1441 | <listitem> |
1442 | <para>Two devices must have been previously added and connected to | ||
1443 | the uCPE Manager instance.</para> | ||
1444 | </listitem> | ||
1445 | |||
1446 | <listitem> | ||
1270 | <para>Add the Fortigate VNF Image | 1447 | <para>Add the Fortigate VNF Image |
1271 | (<filename>fortios.qcow2</filename>) to the | 1448 | (<filename>fortios.qcow2</filename>) to the |
1272 | <literal>vnf_image</literal> folder.</para> | 1449 | <literal>vnf_image</literal> folder.</para> |