Skip to content

Commit

Permalink
updates for border_spine test (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
juburnet committed Jun 20, 2024
1 parent 39a3bdb commit c0e3c5c
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/integration/fabric_vars_example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,8 @@ border:
border_gateway:
hostname: << border_gateway_hostname >>
serial: << border_gateway_serial >>
ip: << border_gateway_ip >>
ip: << border_gateway_ip >>
border_spine:
hostname: << border_spine_hostname >>
serial: << border_spine_serial >>
ip: << border_spine_ip >>
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,15 @@ vxlan:
management_ipv4_address: << border_gateway_ip >>
management_ipv6_address: 2055:55:55:55::55/64
routing_loopback_id: 0
vtep_loopback_id: 1

- name: << border_spine_hostname >>
serial_number: << border_spine_serial >>
role: border_spine
management:
default_gateway_v4: << default_gateway_v4 >>
default_gateway_v6: 2055:55:55:55::55/64
management_ipv4_address: << border_spine_ip >>
management_ipv6_address: 2055:55:55:55::55/64
routing_loopback_id: 0
vtep_loopback_id: 1
25 changes: 25 additions & 0 deletions tests/integration/roles/test_update_model_data/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -280,4 +280,29 @@
regexp: '<< border_gateway_ip >>'
replace: "{{ border_gateway.ip }}"
loop: "{{ files_names }}"
delegate_to: 127.0.0.1

# -- Border Spine --
- name: Replace << border_spine_hostname >> in test data model files
ansible.builtin.replace:
path: "{{ playbook_dir }}/host_vars/{{ inventory_hostname}}/{{ item}}"
regexp: '<< border_spine_hostname >>'
replace: "{{ border_spine.hostname }}"
loop: "{{ files_names }}"
delegate_to: 127.0.0.1

- name: Replace << border_spine_serial >> in test data model files
ansible.builtin.replace:
path: "{{ playbook_dir }}/host_vars/{{ inventory_hostname}}/{{ item}}"
regexp: '<< border_spine_serial >>'
replace: "{{ border_spine.serial }}"
loop: "{{ files_names }}"
delegate_to: 127.0.0.1

- name: Replace << border_spine_ip >> in test data model files
ansible.builtin.replace:
path: "{{ playbook_dir }}/host_vars/{{ inventory_hostname}}/{{ item}}"
regexp: '<< border_spine_ip >>'
replace: "{{ border_spine.ip }}"
loop: "{{ files_names }}"
delegate_to: 127.0.0.1

0 comments on commit c0e3c5c

Please sign in to comment.