Skip to content

Commit

Permalink
peers: allow RADB:: prefix for AS-SETs
Browse files Browse the repository at this point in the history
  • Loading branch information
liske committed Nov 15, 2024
1 parent 67eda3f commit f1bfb21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/com_peers/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
- peer.ipv4address|ansible.utils.ipv4('address') == peer.ipv4address
- peer.ipv4bgpmd5secret is match('^[a-zA-Z0-9]*$')
- peer.ipv4hostname is match('^(((?!-))(xn--|_)?[a-z0-9-]{0,61}[a-z0-9]{1,1}\.)*(xn--)?([a-z0-9][a-z0-9\-]{0,60}|[a-z0-9-]{1,30}\.[a-z]{2,})$')
- peer.ipv4peeringmacro == None or peer.ipv4peeringmacro is match('^(AS' + peer.asn|string + ':)?[A-Z0-9-]+$')
- peer.ipv4peeringmacro == None or peer.ipv4peeringmacro is match('^(AS' + peer.asn|string + ':|RADB::)?[A-Z0-9-]+$')
- peer.ipv6address|ansible.utils.ipv6('address') == peer.ipv6address
- peer.ipv6bgpmd5secret is match('^[a-zA-Z0-9]*$')
- peer.ipv6hostname is match('^(((?!-))(xn--|_)?[a-z0-9-]{0,61}[a-z0-9]{1,1}\.)*(xn--)?([a-z0-9][a-z0-9\-]{0,60}|[a-z0-9-]{1,30}\.[a-z]{2,})$')
- peer.ipv6peeringmacro == None or peer.ipv6peeringmacro is match('(AS' + peer.asn|string + ':)?[A-Z0-9-]+$')
- peer.ipv6peeringmacro == None or peer.ipv6peeringmacro is match('(AS' + peer.asn|string + ':|RADB::)?[A-Z0-9-]+$')
- peer.switchport is match('^Ethernet\d{1,2}$')
- peer.switchname in pop_switches
- peer.vlanid|type_debug == 'int'
Expand Down

0 comments on commit f1bfb21

Please sign in to comment.