Skip to content

Commit

Permalink
🐛(playbook) avoid downtime during switch or rollback
Browse files Browse the repository at this point in the history
The current switch_routes  ansible task leave the current  route in an
undefined state  for a few  seconds when switch or  rollback playbooks
are executed.
  • Loading branch information
madmatah committed Jan 14, 2020
1 parent 8a41035 commit 7532936
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Versioning](http://semver.org/spec/v2.0.0.html).

## Unreleased

### Fixed

- Avoid downtime during a switch or rollback

## [4.6.0] - 2020-01-13

### Added
Expand Down
2 changes: 2 additions & 0 deletions tasks/rollback_routes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
vars:
prefix_route_src: "{{ prefix_route.src }}"
prefix_route_dest: "{{ prefix_route.dest }}"
update_src: "{{ prefix_route.update_src | default(True)}}"
with_items:
- src: current
dest: next
update_src: False
- src: previous
dest: current
loop_control:
Expand Down
2 changes: 2 additions & 0 deletions tasks/switch_route.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@
vars:
prefix: "{{ prefix_route_src }}"
tags: switch
when: update_src is defined and update_src == True

2 changes: 2 additions & 0 deletions tasks/switch_routes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
vars:
prefix_route_src: "{{ prefix_route.src }}"
prefix_route_dest: "{{ prefix_route.dest }}"
update_src: "{{ prefix_route.update_src | default(True)}}"
with_items:
- src: current
dest: previous
update_src: False
- src: next
dest: current
loop_control:
Expand Down

0 comments on commit 7532936

Please sign in to comment.