Changes Include:
 - Fixes an issue where using non-1st nic admin network deployment would
   result in loss of network connectivity during deployment.
 - Fixes an issue where not specifying cores to pin to in performance
   options would result in an incorrect '0' value used for core mask.
JIRA: APEX-452
JIRA: APEX-453
Change-Id: I413290161abd9b2fa39b659d5ff989da9554f603
Signed-off-by: Tim Rozet <trozet@redhat.com>
             echo vm.hugetlb_shm_group=0 >> /usr/lib/sysctl.d/00-system.conf
             echo vm.max_map_count=$(printf "%.0f" $(echo 2.2*$hugepage_count | bc)) >> /usr/lib/sysctl.d/00-system.conf
             echo kernel.shmmax=$(($hugepage_count * 2 * 1024 * 1024)) >> /usr/lib/sysctl.d/00-system.conf
-
+            rm -f /etc/sysconfig/network-scripts/ifcfg-*
             reboot
           params:
             $KERNEL_ARGS: {get_param: ComputeKernelArgs}
 
             if [ -n "$SOCKET_MEMORY" ]; then
               ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-socket-mem=$SOCKET_MEMORY
             fi
-            if [ -n "$pmd_cpu_mask" ]; then
+            if [[ -n "$pmd_cpu_mask" && -n "$PMD_CORES" ]]; then
               ovs-vsctl --no-wait set Open_vSwitch . other_config:pmd-cpu-mask=$pmd_cpu_mask
             fi
-            if [ -n "$dpdk_lcore_mask" ]; then
+            if [ -n "$dpdk_lcore_mask" && -n "$DPDK_CORES" ]]; then
               ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-lcore-mask=$dpdk_lcore_mask
             fi
             systemctl restart openvswitch