Skip to content

Commit

Permalink
fix:清理集群后calico的bgp路由残留
Browse files Browse the repository at this point in the history
  • Loading branch information
gjmzj committed Mar 28, 2018
1 parent 99ea4b1 commit 51caf57
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 99.clean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@
systemctl restart network"
ignore_errors: true

- name: 清理calico残留路由
shell: "for rt in `ip route|grep bird|sed 's/blackhole//'|awk '{print $1}'`;do ip route del $rt;done;"
when: "CLUSTER_NETWORK == 'calico'"
ignore_errors: true

# 清理etcd 集群相关
- hosts: etcd
tasks:
Expand Down

0 comments on commit 51caf57

Please sign in to comment.