Skip to content

Commit

Permalink
Fix junos_interfaces integration test failure (#59035)
Browse files Browse the repository at this point in the history
* Fix junos_interfaces failure

*  Remove lo0 interface by default since
   vsrz zuul env seems to add it intermittently
   as part of device intial config

* Add missing change for replace case
  • Loading branch information
ganeshrn authored and pabelanger committed Jul 12, 2019
1 parent 7b8edbf commit 70db07f
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
- debug:
msg: "Start junos_nterfaces deleted remove interface config ansible_connection={{ ansible_connection }}"

- name: Remove interface config
- name: "Setup - remove interface config"
junos_config:
lines:
- delete interfaces ge-0/0/1
- delete interfaces ge-0/0/2
- delete interfaces ge-0/0/3
- delete interfaces lo0

- debug:
msg: "End junos_nterfaces deleted remove interface config ansible_connection={{ ansible_connection }}"
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
expected_deleted_output:
- name: fxp0
enable: true
- name: lo0
enable: true

- block:
- name: Configure initial state for interface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
down: 3200
- name: fxp0
enable: true
- name: lo0
enable: true

- block:
- name: Merge the provided configuration with the exisiting running configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
enable: true
- name: fxp0
enable: true
- name: lo0
enable: true

- block:
- name: Configure initial state for interface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
down: 3200
- name: fxp0
enable: true
- name: lo0
enable: true

- block:
- name: Configure initial state for interface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
down: 3200
- name: fxp0
enable: true
- name: lo0
enable: true

- block:
- name: Apply the provided configuration (base config)
Expand Down

0 comments on commit 70db07f

Please sign in to comment.