summaryrefslogtreecommitdiff
path: root/test/integration/targets/nxos_bgp/tests/common/isolate.yaml
diff options
context:
space:
mode:
authorAnsible Core Team <info@ansible.com>2020-03-09 09:40:35 +0000
committerAnsible Core Team <info@ansible.com>2020-03-09 09:40:35 +0000
commitecd1907190ce9d7d744548227a47d3827ce3ab65 (patch)
tree71f94fa4ed330319cf9152971d49841d8aeb9b4c /test/integration/targets/nxos_bgp/tests/common/isolate.yaml
parente39b1dec45fe86210b669d6b1b117753b5b2c9f9 (diff)
downloadansible-ecd1907190ce9d7d744548227a47d3827ce3ab65.tar.gz
Migrated to cisco.nxos
Diffstat (limited to 'test/integration/targets/nxos_bgp/tests/common/isolate.yaml')
-rw-r--r--test/integration/targets/nxos_bgp/tests/common/isolate.yaml76
1 files changed, 0 insertions, 76 deletions
diff --git a/test/integration/targets/nxos_bgp/tests/common/isolate.yaml b/test/integration/targets/nxos_bgp/tests/common/isolate.yaml
deleted file mode 100644
index 0d507f6eea..0000000000
--- a/test/integration/targets/nxos_bgp/tests/common/isolate.yaml
+++ /dev/null
@@ -1,76 +0,0 @@
----
-- debug: msg="START connection={{ ansible_connection }} nxos_bgp parameter test"
-
-
-- debug: msg="This bgp_isolate is not supported on {{ image_version }}"
- when: imagetag is search("A8")
-- set_fact: bgp_isolate="false"
-- set_fact: bgp_isolate="true"
- when: imagetag is not search("A8")
-
-- name: "Disable feature BGP"
- nxos_feature:
- feature: bgp
- state: disabled
- ignore_errors: yes
-
-- name: "Enable feature BGP"
- nxos_feature:
- feature: bgp
- state: enabled
- ignore_errors: yes
-
-- block:
- # these tasks will fail on n3k running A8
- # due to no support
- - name: "set isolate"
- nxos_bgp: &set1
- asn: 65535
- isolate: false
- register: result
- when: bgp_isolate
-
- - assert: &true
- that:
- - "result.changed == true"
- when: bgp_isolate
-
- - name: "Check Idempotence"
- nxos_bgp: *set1
- register: result
- when: bgp_isolate
-
- - assert: &false
- that:
- - "result.changed == false"
- when: bgp_isolate
-
- - name: "reset isolate"
- nxos_bgp: &reset1
- asn: 65535
- isolate: true
- register: result
- when: bgp_isolate
-
- - assert: *true
- when: bgp_isolate
-
- - name: "Check Idempotence"
- nxos_bgp: *reset1
- register: result
- when: bgp_isolate
-
- - assert: *false
- when: bgp_isolate
-
- rescue:
- - debug: msg="Tests can fail on A8 images"
-
- always:
- - name: "Disable feature bgp"
- nxos_feature:
- feature: bgp
- state: disabled
- ignore_errors: yes
-
- - debug: msg="END connection={{ ansible_connection }} nxos_bgp parameter test"