summaryrefslogtreecommitdiffstats
path: root/kud/deployment_infra/playbooks/configure-ovn4nfv.yml
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2019-06-19 22:46:56 +0000
committerGerrit Code Review <gerrit@onap.org>2019-06-19 22:46:56 +0000
commite862e3962a7b24c5d6060d3c37d93c80a0a0955c (patch)
tree99e80168811f4dbbc05064aa5a5ca06e1d92b7e7 /kud/deployment_infra/playbooks/configure-ovn4nfv.yml
parent36bd529eefdf43e552f420ab0a1d52fd560b837f (diff)
parentc0b239b995f7497199186182f8b6cb682b8d1b40 (diff)
Merge "Add ovn-networkobj for Multus"
Diffstat (limited to 'kud/deployment_infra/playbooks/configure-ovn4nfv.yml')
-rw-r--r--kud/deployment_infra/playbooks/configure-ovn4nfv.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/kud/deployment_infra/playbooks/configure-ovn4nfv.yml b/kud/deployment_infra/playbooks/configure-ovn4nfv.yml
index f8dabd9d..2d1a11d0 100644
--- a/kud/deployment_infra/playbooks/configure-ovn4nfv.yml
+++ b/kud/deployment_infra/playbooks/configure-ovn4nfv.yml
@@ -96,3 +96,29 @@
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