Skip to content

Commit

Permalink
peers: add status validation
Browse files Browse the repository at this point in the history
  • Loading branch information
liske committed Feb 25, 2024
1 parent 46b15ad commit 9e3887e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roles/com_peers/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
- peer.asn > 0 and peer.asn < 64512
- peer.maxprefixes|type_debug == 'int'
- peer.maxprefixes > 0
- peer.status in ixp_manager_portstatus
- peer.custname is match('^[a-zA-Z0-9_. -]+$')
- peer.slug is match('^[A-Za-z0-9_.-]+$')
- peer.l2address == None or peer.l2address is match('^[0-9a-f]{12}$')
Expand All @@ -40,7 +41,7 @@
- peer.switchname in ['ixp-cc-sw01', 'ixp-c2-sw01']
- peer.vlanid|type_debug == 'int'
- peer.vlanid == 600
msg: "failed validation for peer AS{{ peer.asn }}"
msg: "validation failed at peer AS{{ peer.asn }}"
quiet: true
loop: "{{ ixp_manager_peers }}"
loop_control:
Expand Down

0 comments on commit 9e3887e

Please sign in to comment.