summaryrefslogtreecommitdiff
path: root/tests/integration/targets/vyos_bgp_global/tests/cli/replaced_af.yaml
blob: e66aae76c33bb67a5b4b6ee62a724bb61f9f25d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
- debug:
    msg: START vyos_bgp_global replaced integration tests on connection={{
      ansible_connection }}

- include_tasks: _remove_config.yaml

- include_tasks: _populate_af.yaml

- block:
    - name: Replace the existing af configuration with the provided running configuration
      register: result
      ignore_errors: true
      vyos.vyos.vyos_bgp_global: &id001
        config:
          as_number: "65536"
          network:
            - address: "203.0.113.0/24"
              route_map: map01
          redistribute:
            - protocol: "static"
              route_map: "map01"
          bgp_params:
            always_compare_med: true
            dampening:
              start_suppress_time: 5
              max_suppress_time: 20
              half_life: 33
              re_use: 60
            bestpath:
              as_path: "confed"
              compare_routerid: true
            default:
              no_ipv4_unicast: true
          neighbor:
            - address: "192.0.2.43"
              disable_connected_check: true
              advertisement_interval: 72
              capability:
                dynamic: true
              timers:
                holdtime: 30
                keepalive: 10
            - address: "203.0.113.0"
              capability:
                orf: "receive"
        state: replaced

    - assert:
        that:
          - result.msg == 'Use the _bgp_address_family module to delete the address_family under neighbor 5001::64, before replacing/deleting the neighbor.'

  always:
    - include_tasks: _remove_config.yaml