COMAC-8 add ability to disable sriov for mcord-services

Add option to enable/disable sriov. PTP plugin can be used in case
sriov is disabled. Basically all kind of plugin can be used,
but may need some manual steps.
Also, refactor spgwu to make it more configurable and conventional.

Change-Id: I62d5d41cbd27b53b9c66dfad55123ba7bc340482
diff --git a/mcord-release/mcord-services/templates/networks.yaml b/mcord-release/mcord-services/templates/networks.yaml
index b483fb1..0cecc3a 100644
--- a/mcord-release/mcord-services/templates/networks.yaml
+++ b/mcord-release/mcord-services/templates/networks.yaml
@@ -14,28 +14,29 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-{{- range .Values.networks }}
+{{- range .Values.network.networks }}
 ---
 apiVersion: "k8s.cni.cncf.io/v1"
 kind: NetworkAttachmentDefinition
 metadata:
   name: {{ .name }}
+{{- if $.Values.network.sriov.enabled }}
   annotations:
     k8s.v1.cni.cncf.io/resourceName: intel.com/sriov
+{{- end }}
 spec:
   config: '{
-    "type": {{ .sriovtype | quote }},
-    "name": {{ .name | quote }},
+    "type": {{ .type | quote }},
     "ipam": {
-        "type": {{ .ipamtype | quote }},
-    {{- if eq .ipamtype "host-local" }}
+        "type": {{ .ipam | quote }},
+    {{- if eq .ipam "host-local" }}
         "subnet": {{ .subnet | quote }},
         "gateway": {{ .gateway | quote }}
-    {{- else if eq .ipamtype "centralip" }}
+    {{- else if eq .ipam "centralip" }}
         "ipType": "cluster",
         "network": {{ .subnet | quote }},
         "etcdURL": {{ $.Values.global.etcdurl | quote }}
     {{- end }}
     }
-}'
+  }'
 {{- end }}