diff options
author | Bin Yang <bin.yang@windriver.com> | 2019-06-19 22:46:56 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-06-19 22:46:56 +0000 |
commit | e862e3962a7b24c5d6060d3c37d93c80a0a0955c (patch) | |
tree | 99e80168811f4dbbc05064aa5a5ca06e1d92b7e7 | |
parent | 36bd529eefdf43e552f420ab0a1d52fd560b837f (diff) | |
parent | c0b239b995f7497199186182f8b6cb682b8d1b40 (diff) |
Merge "Add ovn-networkobj for Multus"
-rw-r--r-- | kud/deployment_infra/playbooks/configure-ovn4nfv.yml | 26 |
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 |