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

add common var definitions to manage_bgp_peers and manage_sbp playbooks

parent 3a44b712
No related branches found
No related tags found
1 merge request!288Fix/mar migration fixes
......@@ -13,6 +13,14 @@
ansible.builtin.include_vars:
file: /opt/ansible_inventory/geant_services/L3CoreService/general.yaml
- name: Set gso_partner_name from subscription
ansible.builtin.set_fact:
gso_partner_name: "{{ partner_name | upper }}"
- name: Set gso_product_type from subscription
ansible.builtin.set_fact:
gso_product_type: "{{ subscription.product.product_type | upper }}"
- name: Set the L3 subscription key
ansible.builtin.set_fact:
subscription_key: "{{ l3_services[subscription.product.product_type | upper] }}"
......
......@@ -9,6 +9,24 @@
ansible.builtin.include_vars:
file: /opt/ansible_inventory/geant_services/L3CoreService/general.yaml
- name: Set gso_partner_name from subscription
ansible.builtin.set_fact:
gso_partner_name: "{{ partner_name | upper }}"
- name: Set gso_product_type from subscription
ansible.builtin.set_fact:
gso_product_type: "{{ subscription.product.product_type | upper }}"
- name: Lookup and set inv_product_types var for NREN subscriptions
when: gso_product_type in inv_product_types_nren.keys()
ansible.builtin.set_fact:
inv_product_types: "{{ inv_product_types_nren }}"
- name: Lookup and set inv_product_types var for RANDE subscriptions
when: gso_product_type in inv_product_types_rande.keys()
ansible.builtin.set_fact:
inv_product_types: "{{ inv_product_types_rande }}"
- name: Set the L3 subscription key
ansible.builtin.set_fact:
subscription_key: "{{ l3_services[subscription.product.product_type | upper] }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment