summaryrefslogtreecommitdiff
path: root/tests/integration/targets/vyos_bgp_address_family/vars/main.yaml
blob: 448918afcc9925d6d21ca15ae26305b4d9562bf9 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
---
merged:
  commands:
    - set protocols bgp 65536 address-family ipv6-unicast redistribute static metric 50
    - set protocols bgp 65536 neighbor 203.0.113.5 address-family ipv6-unicast allowas-in number 4
    - set protocols bgp 65536 neighbor 203.0.113.5 address-family ipv6-unicast attribute-unchanged med
    - set protocols bgp 65536 neighbor 203.0.113.5 address-family ipv6-unicast default-originate route-map map01
    - set protocols bgp 65536 neighbor 203.0.113.5 address-family ipv6-unicast distribute-list export 10
    - set protocols bgp 65536 neighbor 192.0.2.25 address-family ipv6-unicast maximum-prefix 45
    - set protocols bgp 65536 neighbor 192.0.2.25 address-family ipv6-unicast nexthop-self
    - set protocols bgp 65536 neighbor 192.0.2.25 address-family ipv6-unicast route-map export map01
    - set protocols bgp 65536 neighbor 192.0.2.25 address-family ipv6-unicast route-map import map01
  after:
    address_family:
      - afi: ipv6
        redistribute:
          - metric: 50
            protocol: static
    as_number: 65536
    neighbors:
      - address_family:
          - afi: ipv6
            maximum_prefix: 45
            nexthop_self: true
            route_map:
              - action: export
                route_map: map01
              - action: import
                route_map: map01
        neighbor_address: 192.0.2.25
      - address_family:
          - afi: ipv6
            allowas_in: 4
            attribute_unchanged:
              med: true
            default_originate: map01
            distribute_list:
              - acl: 10
                action: export
        neighbor_address: 203.0.113.5

replaced:
  commands:
    - delete protocols bgp 65536 neighbor 203.0.113.5 address-family ipv6-unicast attribute-unchanged
    - delete protocols bgp 65536 address-family ipv6 aggregate-address
    - delete protocols bgp 65536 address-family ipv6 network
    - delete protocols bgp 65536 address-family ipv6-unicast redistribute ripng
    - set protocols bgp 65536 address-family ipv6-unicast redistribute static metric 50
    - set protocols bgp 65536 neighbor 203.0.113.5 address-family ipv6-unicast allowas-in number 4
    - set protocols bgp 65536 neighbor 203.0.113.5 address-family ipv6-unicast attribute-unchanged med
    - set protocols bgp 65536 neighbor 203.0.113.5 address-family ipv6-unicast default-originate route-map map01
    - set protocols bgp 65536 neighbor 203.0.113.5 address-family ipv6-unicast distribute-list export 10

overridden:
  commands:
    - delete protocols bgp 65536 neighbor 203.0.113.5 address-family ipv6-unicast attribute-unchanged
    - delete protocols bgp 65536 neighbor 192.0.2.25 address-family
    - delete protocols bgp 65536 address-family ipv6-unicast redistribute ripng
    - delete protocols bgp 65536 address-family ipv6 aggregate-address
    - delete protocols bgp 65536 address-family ipv6 network
    - set protocols bgp 65536 address-family ipv6-unicast redistribute static metric 50
    - set protocols bgp 65536 neighbor 203.0.113.5 address-family ipv6-unicast allowas-in number 4
    - set protocols bgp 65536 neighbor 203.0.113.5 address-family ipv6-unicast attribute-unchanged med
    - set protocols bgp 65536 neighbor 203.0.113.5 address-family ipv6-unicast default-originate route-map map01
    - set protocols bgp 65536 neighbor 203.0.113.5 address-family ipv6-unicast distribute-list export 10

deleted:
  commands:
    - delete protocols bgp 65536 address-family ipv6-unicast
    - delete protocols bgp 65536 neighbor 203.0.113.5 address-family
    - delete protocols bgp 65536 neighbor 192.0.2.25 address-family ipv6-unicast

populate:
  config:
    address_family:
      - afi: ipv6
        aggregate_address:
          - summary_only: true
            prefix: 5000:1:1::/64
        networks:
          - prefix: 21e0:1:1::/64
            route_map: map01
        redistribute:
          - metric: 20
            protocol: ripng
    as_number: 65536
    neighbors:
      - address_family:
          - afi: ipv6
            route_map:
              - action: export
                route_map: map01
            soft_reconfiguration: true
        neighbor_address: 192.0.2.25
      - address_family:
          - afi: ipv6
            attribute_unchanged:
              next_hop: true
        neighbor_address: 203.0.113.5