[go: up one dir, main page]

Skip to content

Commit

Permalink
Restart bgp after initial metal-core deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
iljarotar committed Sep 27, 2024
1 parent 65d4ae1 commit d7bf14b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions partition/roles/metal-core/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,14 @@
port: 2112
timeout: 300
msg: "metal-core did not come up"

- name: check if bgp session is up
ansible.builtin.command: vtysh -c 'show bgp summary'
register: bgp_summary
changed_when: false

- name: restart bgp if necessary
systemd:
name: bgp
state: restarted
when: "'BGP instance not found' in bgp_summary.stdout"

0 comments on commit d7bf14b

Please sign in to comment.