Skip to content
Snippets Groups Projects
Commit 77371025 authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

tasks/set_trunk_version - set trunk version either to GSO value or to 1.0

parent f8cf9f9e
No related branches found
No related tags found
1 merge request!268Feature/nat 1185 iptrunk versions
Pipeline #94177 passed
---
- name: Force trunk version when it is not defined in GSO
when: wfo_trunk.iptrunk.iptrunk_config_version is not defined
ansible.builtin.set_fact:
trunk_version: 1.0
- name: Force trunk version to default 1.0 if is none in GSO
when: wfo_trunk.iptrunk.iptrunk_config_version is defined
and wfo_trunk.iptrunk.iptrunk_config_version is none
ansible.builtin.set_fact:
trunk_version: 1.0
- name: Set trunk version to the GSO value
when: wfo_trunk.iptrunk.iptrunk_config_version is defined
and wfo_trunk.iptrunk.iptrunk_config_version is not none
ansible.builtin.set_fact:
trunk_version: "{{ wfo_trunk.iptrunk.iptrunk_config_version }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment