Skip to content
Snippets Groups Projects
Unverified Commit 3ea49601 authored by khatrig's avatar khatrig Committed by GitHub
Browse files

Create reset.yml (#8227)

parent 7e1873d9
No related branches found
No related tags found
No related merge requests found
...@@ -11,13 +11,6 @@ ...@@ -11,13 +11,6 @@
command: ip link del dummy0 command: ip link del dummy0
when: dummy0.stat.exists when: dummy0.stat.exists
- name: reset | get remaining routes set by bird - name: reset | get and remove remaining routes set by bird
command: ip route show proto bird shell: ip route show proto bird | xargs -i bash -c "ip route del {} proto bird "
changed_when: false changed_when: false
register: bird_routes
- name: reset | remove remaining routes set by bird # noqa 301
command: "ip route del {{ bird_route }} proto bird"
with_items: "{{ bird_routes.stdout_lines }}"
loop_control:
loop_var: bird_route
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment