Add ovn-networkobj for Multus 19/90119/1
authorRitu Sood <ritu.sood@intel.com>
Wed, 19 Jun 2019 04:46:17 +0000 (04:46 +0000)
committerRitu Sood <ritu.sood@intel.com>
Wed, 19 Jun 2019 04:47:29 +0000 (04:47 +0000)
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

kud/deployment_infra/playbooks/configure-ovn4nfv.yml

index f8dabd9..2d1a11d 100644 (file)
         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