1---
2merged:
3  commands:
4    - router bgp 65536
5    - address-family ipv4 multicast
6    - nexthop route-map rmap2
7    - nexthop trigger-delay critical 120 non-critical 180
8    - network 192.0.2.32/27
9    - network 192.0.2.64/27 route-map rmap1
10    - vrf site-1
11    - address-family ipv4 unicast
12    - default-information originate
13    - aggregate-address 203.0.113.0/24 as-set summary-only
14    - address-family ipv6 multicast
15    - redistribute ospfv3 100 route-map rmap-ospf-1
16    - redistribute eigrp 101 route-map rmap-eigrp-1
17  after:
18    as_number: "65536"
19    address_family:
20      - afi: ipv4
21        safi: multicast
22        networks:
23          - prefix: 192.0.2.32/27
24          - prefix: 192.0.2.64/27
25            route_map: rmap1
26        nexthop:
27          route_map: rmap2
28          trigger_delay:
29            critical_delay: 120
30            non_critical_delay: 180
31      - afi: ipv4
32        safi: unicast
33        vrf: site-1
34        default_information:
35          originate: True
36        aggregate_address:
37          - prefix: 203.0.113.0/24
38            as_set: True
39            summary_only: True
40      - afi: ipv6
41        safi: multicast
42        vrf: site-1
43        redistribute:
44          - id: "100"
45            protocol: ospfv3
46            route_map: rmap-ospf-1
47          - id: "101"
48            protocol: eigrp
49            route_map: rmap-eigrp-1
50
51replaced:
52  commands:
53    - router bgp 65536
54    - address-family ipv4 multicast
55    - no network 192.0.2.32/27
56    - aggregate-address 203.0.113.0/24 as-set summary-only
57    - vrf site-1
58    - address-family ipv4 unicast
59    - no default-information originate
60    - no aggregate-address 203.0.113.0/24 as-set summary-only
61  after:
62    as_number: "65536"
63    address_family:
64      - afi: ipv4
65        safi: multicast
66        networks:
67          - prefix: 192.0.2.64/27
68            route_map: rmap1
69        nexthop:
70          route_map: rmap2
71          trigger_delay:
72            critical_delay: 120
73            non_critical_delay: 180
74        aggregate_address:
75          - prefix: 203.0.113.0/24
76            as_set: True
77            summary_only: True
78
79      - afi: ipv4
80        safi: unicast
81        vrf: site-1
82
83      - afi: ipv6
84        safi: multicast
85        vrf: site-1
86        redistribute:
87          - protocol: ospfv3
88            id: "100"
89            route_map: rmap-ospf-1
90          - protocol: eigrp
91            id: "101"
92            route_map: rmap-eigrp-1
93
94overridden:
95  commands:
96    - router bgp 65536
97    - vrf site-1
98    - no address-family ipv6 multicast
99    - exit
100    - address-family ipv4 multicast
101    - no nexthop route-map rmap2
102    - no nexthop trigger-delay critical 120 non-critical 180
103    - aggregate-address 203.0.113.0/24 as-set summary-only
104    - no network 192.0.2.32/27
105    - vrf site-1
106    - address-family ipv4 unicast
107    - no default-information originate
108    - no aggregate-address 203.0.113.0/24 as-set summary-only
109  after:
110    as_number: "65536"
111    address_family:
112      - afi: ipv4
113        safi: multicast
114        networks:
115          - prefix: 192.0.2.64/27
116            route_map: rmap1
117        aggregate_address:
118          - prefix: 203.0.113.0/24
119            as_set: True
120            summary_only: True
121      - afi: ipv4
122        safi: unicast
123        vrf: site-1
124
125deleted:
126  before:
127    as_number: "65536"
128    address_family:
129      - afi: ipv4
130        safi: multicast
131        networks:
132          - prefix: 192.0.2.32/27
133          - prefix: 192.0.2.64/27
134            route_map: rmap1
135        nexthop:
136          route_map: rmap2
137          trigger_delay:
138            critical_delay: 120
139            non_critical_delay: 180
140
141      - afi: ipv4
142        safi: unicast
143        vrf: site-1
144        default_information:
145          originate: True
146        aggregate_address:
147          - prefix: 203.0.113.0/24
148            as_set: True
149            summary_only: True
150
151      - afi: ipv4
152        safi: multicast
153        vrf: site-1
154
155      - afi: ipv6
156        safi: multicast
157        vrf: site-1
158        redistribute:
159          - id: "100"
160            protocol: ospfv3
161            route_map: rmap-ospf-1
162          - id: "101"
163            protocol: eigrp
164            route_map: rmap-eigrp-1
165
166      - afi: ipv6
167        safi: unicast
168        vrf: site-2
169  commands:
170    - router bgp 65536
171    - no address-family ipv4 multicast
172    - vrf site-1
173    - no address-family ipv4 unicast
174    - no address-family ipv6 multicast
175    - exit
176  after:
177    as_number: "65536"
178    address_family:
179      - afi: ipv4
180        safi: multicast
181        vrf: site-1
182      - afi: ipv6
183        safi: unicast
184        vrf: site-2
185
186deleted_all:
187  commands:
188    - router bgp 65536
189    - no address-family ipv4 multicast
190    - vrf site-1
191    - no address-family ipv4 unicast
192    - no address-family ipv6 multicast
193    - exit
194  after:
195    as_number: "65536"
196