blob: 0c3455c800b9bbf191f310c33e352175b680c212 [file] [log] [blame]
---
# bird molecule/default/verify.yml
#
# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
# SPDX-License-Identifier: Apache-2.0
- name: Converge
hosts: all
vars:
bird_conf_filters:
gcp_tunnel_in: |
if (net ~ [ 10.168.0.0/20, 10.52.128.0/17, 10.45.128.0/17 ]) then accept;
else reject;
gcp_tunnel_out: |
if (net ~ [ 10.93.1.0/24, 10.92.1.0/24, 10.53.128.0/17 ]) then accept;
else reject;
bird_conf_templates:
- name: gcp_tunnel
protocol: bgp
options: |
keepalive time 20;
hold time 60;
graceful restart aware;
import filter gcp_tunnel_in;
import limit 10 action warn;
export filter gcp_tunnel_out;
export limit 10 action warn;
bird_conf_protocols:
- name: gcp_tunnel1
protocol: bgp
options: |
local 169.254.0.2 as 64521;
neighbor 169.254.0.1 as 64520;
template: gcp_tunnel
- name: gcp_tunnel2
protocol: bgp
options: |
local 169.254.0.6 as 64521;
neighbor 169.254.0.5 as 64520;
template: gcp_tunnel
tasks:
- name: "Include bird"
include_role:
name: "bird"