diff options
author | Ganesh Nalawade <ganesh634@gmail.com> | 2017-11-24 12:04:47 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-24 12:04:47 +0530 |
commit | 3d63ecb6f3dc1d3687183746d431c1721233d125 (patch) | |
tree | 2cfa8cfdd78cf0ef4f16a49d2867e862bb2a9c08 /test/integration/targets/junos_interface | |
parent | 0c75f00248794fe59f68ffc8bc5d26ef8fcb6954 (diff) | |
download | ansible-3d63ecb6f3dc1d3687183746d431c1721233d125.tar.gz |
Refactor junos modules to Use netconf and cliconf plugins (#32621)
* Fix junos integration test fixes as per connection refactor (#33050)
Refactor netconf connection plugin to work with netconf plugin
* Fix junos integration test fixes as per connection refactor (#33050)
Refactor netconf connection plugin to work with netconf plugin
Fix CI failure
Fix unit test failure
Fix review comments
Diffstat (limited to 'test/integration/targets/junos_interface')
-rw-r--r-- | test/integration/targets/junos_interface/tests/netconf/intent.yaml | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/test/integration/targets/junos_interface/tests/netconf/intent.yaml b/test/integration/targets/junos_interface/tests/netconf/intent.yaml index 6ef16d7e3b..e41df9c358 100644 --- a/test/integration/targets/junos_interface/tests/netconf/intent.yaml +++ b/test/integration/targets/junos_interface/tests/netconf/intent.yaml @@ -9,17 +9,22 @@ - name: Define interface name for vSRX set_fact: - name: pp0 + intf_name: pp0 when: result['ansible_facts']['ansible_net_model'] | search("vSRX*") +- name: Define interface name for vsrx + set_fact: + intf_name: pp0 + when: result['ansible_facts']['ansible_net_model'] | search("vsrx") + - name: Define interface name for vQFX set_fact: - name: gr-0/0/0 + intf_name: gr-0/0/0 when: result['ansible_facts']['ansible_net_model'] | search("vqfx*") - name: Check intent arguments junos_interface: - name: "{{ name }}" + name: "{{ intf_name }}" state: up tx_rate: ge(0) rx_rate: le(0) @@ -32,7 +37,7 @@ - name: Check intent arguments (failed condition) junos_interface: - name: "{{ name }}" + name: "{{ intf_name }}" state: down tx_rate: gt(0) rx_rate: lt(0) @@ -49,7 +54,7 @@ - name: Config + intent junos_interface: - name: "{{ name }}" + name: "{{ intf_name }}" enabled: False state: down provider: "{{ netconf }}" @@ -62,7 +67,7 @@ - name: Config + intent (fail) junos_interface: - name: "{{ name }}" + name: "{{ intf_name }}" enabled: False state: up provider: "{{ netconf }}" @@ -77,7 +82,7 @@ - name: Aggregate config + intent (pass) junos_interface: aggregate: - - name: "{{ name }}" + - name: "{{ intf_name }}" enabled: True state: up provider: "{{ netconf }}" |