Add ovn custom resource for Multus as part
of installation
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Change-Id: I4e01a06ba76515fa271790b461f473045eb174a2
Issue-ID: MULTICLOUD-670
         name: ovn4nfvk8s
         state: started
         enabled: yes
+
+- hosts: localhost
+  pre_tasks:
+    - name: Load kud variables
+      include_vars:
+        file: kud-vars.yml
+  tasks:
+    - name: define a CRD network object specification
+      blockinfile:
+        path: /tmp/ovn4nfvnetwork.yml
+        create: yes
+        block: |
+          apiVersion: k8s.cni.cncf.io/v1
+          kind: NetworkAttachmentDefinition
+          metadata:
+            name: ovn-networkobj
+          spec:
+            config: '{
+               "cniVersion": "0.3.1",
+               "name": "ovn4nfv-k8s-plugin",
+               "type": "ovn4nfvk8s-cni"
+            }'
+
+    - name: create network objects
+      shell: "/usr/local/bin/kubectl apply -f /tmp/ovn4nfvnetwork.yml"
+      ignore_errors: True