Skip to content
Snippets Groups Projects
Commit 2c1dd698 authored by Erwan Miran's avatar Erwan Miran Committed by Kubernetes Prow Robot
Browse files

Reset tasks specific to Calico (#3813)

parent 145687a4
No related branches found
No related tags found
No related merge requests found
---
- name: reset | check dummy0 network device
stat:
path: /sys/class/net/dummy0
register: dummy0
- name: reset | remove the network device created by calico
command: ip link del dummy0
when: dummy0.stat.exists
- name: reset | get remaining routes set by bird
command: ip route show proto bird
register: bird_routes
- name: reset | remove remaining routes set by bird
command: "ip route del {{ bird_route }} proto bird"
with_items: "{{ bird_routes.stdout_lines }}"
loop_control:
loop_var: bird_route
...@@ -205,7 +205,7 @@ ...@@ -205,7 +205,7 @@
- name: reset | include file with reset tasks specific to the network_plugin if exists - name: reset | include file with reset tasks specific to the network_plugin if exists
include_tasks: "{{ (role_path + '/../network_plugin/' + kube_network_plugin + '/tasks/reset.yml') | realpath }}" include_tasks: "{{ (role_path + '/../network_plugin/' + kube_network_plugin + '/tasks/reset.yml') | realpath }}"
when: when:
- kube_network_plugin in ['flannel', 'cilium', 'contiv', 'kube-router'] - kube_network_plugin in ['flannel', 'cilium', 'contiv', 'kube-router', 'calico']
tags: tags:
- network - network
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment