[COMAC-102] allow CDN-Local to use HostNetwork for non-SRIOV environment

Change-Id: I03501d09756db547eadba2989642aee3d730dc59
diff --git a/cdn-services/cdn-local/templates/networks.yaml b/cdn-services/cdn-local/templates/networks.yaml
index 54b44a2..b3bf674 100644
--- a/cdn-services/cdn-local/templates/networks.yaml
+++ b/cdn-services/cdn-local/templates/networks.yaml
@@ -14,15 +14,14 @@
 limitations under the License.
 */}}
 
+{{ if .Values.config.sriov.enabled }}
 ---
 apiVersion: "k8s.cni.cncf.io/v1"
 kind: NetworkAttachmentDefinition
 metadata:
   name: sgi-net-cdn
-{{- if .Values.config.sriov.enabled }}
   annotations:
     k8s.v1.cni.cncf.io/resourceName: intel.com/sriov_netdevice
-{{- end }}
 spec:
   config: '{
     "type": {{ .Values.networks.cniPlugin | quote }},
@@ -30,3 +29,4 @@
         "type": {{ .Values.networks.ipam | quote }}
     }
   }'
+{{ end }}
\ No newline at end of file