Hyunsun Moon | c49a864 | 2020-11-11 14:58:47 -0800 | [diff] [blame] | 1 | --- |
| 2 | # bird molecule/default/verify.yml |
| 3 | # |
| 4 | # SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| 5 | # SPDX-License-Identifier: Apache-2.0 |
| 6 | |
| 7 | - name: Converge |
| 8 | hosts: all |
| 9 | vars: |
| 10 | bird_conf_filters: |
| 11 | gcp_tunnel_in: | |
| 12 | if (net ~ [ 10.168.0.0/20, 10.52.128.0/17, 10.45.128.0/17 ]) then accept; |
| 13 | else reject; |
| 14 | gcp_tunnel_out: | |
| 15 | if (net ~ [ 10.93.1.0/24, 10.92.1.0/24, 10.53.128.0/17 ]) then accept; |
| 16 | else reject; |
| 17 | bird_conf_templates: |
| 18 | - name: gcp_tunnel |
| 19 | protocol: bgp |
| 20 | options: | |
| 21 | keepalive time 20; |
| 22 | hold time 60; |
| 23 | graceful restart aware; |
| 24 | |
| 25 | import filter gcp_tunnel_in; |
| 26 | import limit 10 action warn; |
| 27 | |
| 28 | export filter gcp_tunnel_out; |
| 29 | export limit 10 action warn; |
| 30 | bird_conf_protocols: |
| 31 | - name: gcp_tunnel1 |
| 32 | protocol: bgp |
| 33 | options: | |
| 34 | local 169.254.0.2 as 64521; |
| 35 | neighbor 169.254.0.1 as 64520; |
| 36 | template: gcp_tunnel |
| 37 | - name: gcp_tunnel2 |
| 38 | protocol: bgp |
| 39 | options: | |
| 40 | local 169.254.0.6 as 64521; |
| 41 | neighbor 169.254.0.5 as 64520; |
| 42 | template: gcp_tunnel |
| 43 | tasks: |
| 44 | - name: "Include bird" |
| 45 | include_role: |
| 46 | name: "bird" |