Skip to content

Commit

Permalink
bird: only add peer to clients.yml if port is in CONNECTED state
Browse files Browse the repository at this point in the history
  • Loading branch information
liske committed Feb 25, 2024
1 parent 694acee commit b850c68
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hosts/host_vars/localhost/ixp-manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,20 @@ ixp_manager_portstatus:
1:
label: PEER
profile: peering
bird: true
2:
label: DSBL
profile: shutdown
bird: false
3:
label: SHUT
profile: shutdown
bird: false
4:
label: NOXC
profile: quarantine
bird: false
5:
label: QRTN
profile: quarantine
bird: false
1 change: 1 addition & 0 deletions roles/bird_build/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
loop: "{{ ixp_manager_peers|sort(attribute='asn') }}"
loop_control:
loop_var: peer
when: ixp_manager_portstatus[peer.status].bird

- name: build clients.yml from sql query
ansible.builtin.template:
Expand Down

0 comments on commit b850c68

Please sign in to comment.