fix nxos_l2_interface tests for fretta (#37086)

pull/36467/merge
rahushen 7 years ago committed by Trishna Guha
parent 3fd5b0740e
commit b7bc61c7df

@ -27,6 +27,10 @@
state: absent state: absent
provider: "{{ connection }}" provider: "{{ connection }}"
- name: Sleep for 2 seconds on Fretta Platform
wait_for: timeout=2
when: platform is match("N9K-F")
- block: - block:
- name: Configure interface for access_vlan aggregate - name: Configure interface for access_vlan aggregate
nxos_l2_interface: &conf_agg nxos_l2_interface: &conf_agg
@ -40,6 +44,10 @@
that: that:
- "result.changed == true" - "result.changed == true"
- name: Sleep for 2 seconds on Fretta Platform
wait_for: timeout=2
when: platform is match("N9K-F")
- name: Configure interface for access_vlan aggregate(Idempotence) - name: Configure interface for access_vlan aggregate(Idempotence)
nxos_l2_interface: *conf_agg nxos_l2_interface: *conf_agg
register: result register: result
@ -61,6 +69,10 @@
that: that:
- "result.changed == true" - "result.changed == true"
- name: Sleep for 2 seconds on Fretta Platform
wait_for: timeout=2
when: platform is match("N9K-F")
- name: Remove interface aggregate(Idempotence) - name: Remove interface aggregate(Idempotence)
nxos_l2_interface: *rm_agg nxos_l2_interface: *rm_agg
register: result register: result

@ -45,6 +45,10 @@
that: that:
- "result.changed == true" - "result.changed == true"
- name: Sleep for 2 seconds on Fretta Platform
wait_for: timeout=2
when: platform is match("N9K-F")
- name: "access vlan Idempotence" - name: "access vlan Idempotence"
nxos_l2_interface: *acc_vl nxos_l2_interface: *acc_vl
register: result register: result

Loading…
Cancel
Save