diff options
author | 2018-03-09 03:51:29 +0000 | |
---|---|---|
committer | 2018-03-09 03:51:29 +0000 | |
commit | 6bc387014a355483900cd5542961096e8b307cf4 (patch) | |
tree | afacb1701655cc058316984e46eb52a138c23d83 /deploy/adapters/ansible/kubernetes/roles/setup-k8s-network/vars/main.yml | |
parent | ba134f4d524bd885cd40c346f32fcbfb5e99d4c5 (diff) | |
parent | 3ad4238fbf8a8043cfbe6623b22b8d16e82a408f (diff) |
Merge "add a multus with sriov interfaces installation"
Diffstat (limited to 'deploy/adapters/ansible/kubernetes/roles/setup-k8s-network/vars/main.yml')
-rw-r--r-- | deploy/adapters/ansible/kubernetes/roles/setup-k8s-network/vars/main.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/kubernetes/roles/setup-k8s-network/vars/main.yml b/deploy/adapters/ansible/kubernetes/roles/setup-k8s-network/vars/main.yml new file mode 100644 index 00000000..e525bf5c --- /dev/null +++ b/deploy/adapters/ansible/kubernetes/roles/setup-k8s-network/vars/main.yml @@ -0,0 +1,7 @@ +--- +intf_sriov: |- + {%- set intf_sriov = sys_intf_mappings["tenant"]["interface"] %} + {%- if sys_intf_mappings["tenant"]["vlan_tag"] | int %} + {%- set intf_sriov = intf_sriov + '.' + sys_intf_mappings["tenant"]["vlan_tag"]|string %} + {%- endif %} + {{- intf_sriov }} |