summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/post-osa/vars/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/adapters/ansible/roles/post-osa/vars/main.yml')
-rw-r--r--deploy/adapters/ansible/roles/post-osa/vars/main.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/post-osa/vars/main.yml b/deploy/adapters/ansible/roles/post-osa/vars/main.yml
index 4feb9756..da886028 100644
--- a/deploy/adapters/ansible/roles/post-osa/vars/main.yml
+++ b/deploy/adapters/ansible/roles/post-osa/vars/main.yml
@@ -3,3 +3,24 @@
sfc_plugins:
src: sfc.conf
dst: /opt/sfc.conf
+
+intf_external: |-
+ {%- set intf_external = compu_sys_mappings["external"]["interface"] %}
+ {%- if compu_sys_mappings["external"]["vlan_tag"] | int %}
+ {%- set intf_external = intf_external + '.' + compu_sys_mappings["external"]["vlan_tag"]|string %}
+ {%- endif %}
+ {{- intf_external }}
+
+intf_tenant: |-
+ {%- set intf_tenant = compu_sys_mappings["tenant"]["interface"] %}
+ {%- if compu_sys_mappings["tenant"]["vlan_tag"] | int %}
+ {%- set intf_tenant = intf_tenant + '.' + compu_sys_mappings["tenant"]["vlan_tag"]|string %}
+ {%- endif %}
+ {{- intf_tenant }}
+
+intf_storage: |-
+ {%- set intf_storage = compu_sys_mappings["storage"]["interface"] %}
+ {%- if compu_sys_mappings["storage"]["vlan_tag"] | int %}
+ {%- set intf_storage = intf_storage + '.' + compu_sys_mappings["storage"]["vlan_tag"]|string %}
+ {%- endif %}
+ {{- intf_storage }}