summaryrefslogtreecommitdiff
path: root/test/integration/targets/ce_is_is_view/tests/netconf/test_ce_isis_export.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/ce_is_is_view/tests/netconf/test_ce_isis_export.yaml')
-rw-r--r--test/integration/targets/ce_is_is_view/tests/netconf/test_ce_isis_export.yaml96
1 files changed, 0 insertions, 96 deletions
diff --git a/test/integration/targets/ce_is_is_view/tests/netconf/test_ce_isis_export.yaml b/test/integration/targets/ce_is_is_view/tests/netconf/test_ce_isis_export.yaml
deleted file mode 100644
index f83a07c2cf..0000000000
--- a/test/integration/targets/ce_is_is_view/tests/netconf/test_ce_isis_export.yaml
+++ /dev/null
@@ -1,96 +0,0 @@
----
-- debug:
- msg: "START ce_is_is_view EXPORTROUTE route policy presented integration tests on connection={{ ansible_connection }}"
-- include_tasks: setup.yaml
-
-- name: present the provided configuration with the exisiting running configuration
- ce_is_is_view: &present
- instance_id: 100
- export_protocol: ospf
- export_policytype: aclNumOrName
- export_processid: 100
- register: result
-
-- name: Assert the configuration is reflected on host
- assert:
- that:
- - "result['changed'] == true"
-
-- name: Get basic config by ce_netconf.
- ce_netconf: &get_config
- rpc: get
- cfg_xml: "<filter type=\"subtree\">
- <isiscomm xmlns=\"http://www.huawei.com/netconf/vrp\" content-version=\"1.0\" format-version=\"1.0\">
- <isSites>
- <isSite>
- <instanceId>100</instanceId>
- <isSiteMTs>
- <isSiteMT>
- <addressFamily>afIpv4</addressFamily>
- <mtId>0</mtId>
- <isFilterExports>
- <isFilterExport>
- <protocol></protocol>
- <processId></processId>
- <policyType></policyType>
- </isFilterExport>
- </isFilterExports>
- </isSiteMT>
- </isSiteMTs>
- </isSite>
- </isSites>
- </isiscomm>
- </filter>"
- register: result_xml
-
-
-- name: present the provided configuration with the existing running configuration (IDEMPOTENT)
- ce_is_is_view: *present
- register: repeat
-
-- name: Assert that the previous task was idempotent
- assert:
- that:
- - "repeat.changed == false"
- - "'<protocol>ospf</protocol>' in result_xml.end_state.result"
- - "'<processId>100</processId>' in result_xml.end_state.result"
- - "'<policyType>level_1</policyType>' in result_xml.end_state.result"
-
-- name: present the provided configuration with the exisiting running configuration
- ce_is_is_view: &absent
- instance_id: 100
- defaultmode: always
- cost: 10
- mode_tag: 10
- level_type: level_1
- avoid_learning: true
- mode_routepolicyname: routepolicy_name
- tag: 100
- state: absent
- register: result
-
-
-- name: Assert the configuration is reflected on host
- assert:
- that:
- - "result['changed'] == true"
-
-- name: present the provided configuration with the existing running configuration (IDEMPOTENT)
- ce_is_is_view: *absent
- register: repeat
-
-- name: Get basic config by ce_netconf.
- ce_netconf: *get_config
- register: result_xml
-
-- name: Assert that the previous task was idempotent
- assert:
- that:
- - "repeat.changed == false"
- - "'<protocol>ospf</protocol>' not in result_xml.end_state.result"
- - "'<processId>100</processId>' not in result_xml.end_state.result"
- - "'<policyType>level_1</policyType>' in result_xml.end_state.result"
-# after present, isis 100 should be deleted
-- include_tasks: cleanup.yaml
-- debug:
- msg: "END ce_is_is_view EXPORTROUTE route policy resentd integration tests on connection={{ ansible_connection }}"