1---
2- debug:
3    msg: START eos_ospfv3 rendered integration tests on connection={{ ansible_connection
4      }}
5
6- block:
7
8    - name: Structure provided configuration into device specific commands
9      become: true
10      register: result
11      arista.eos.eos_ospfv3:
12        config:
13          processes:
14            - address_family:
15                - afi: "ipv4"
16                  fips_restrictions: true
17                  redistribute:
18                    - routes: "connected"
19                - afi: "ipv6"
20                  fips_restrictions: true
21                  router_id: "10.1.1.1"
22              adjacency:
23                exchange_start:
24                  threshold: 11
25              areas:
26                - area_id: "0.0.0.20"
27                  authentication:
28                    algorithm: "sha1"
29                    hidden_key: true
30                    passphrase: "4O8T3zo4xBdRWXBnsnK934o9SEb+jEhHUN6+xzZgCo2j9EnQBUvtwNxxLEmYmm6w"
31                    spi: 33
32                  stub:
33                    set: true
34                - area_id: "0.0.0.40"
35                  default_cost: 45
36                  stub:
37                    set: true
38              fips_restrictions: true
39              timers:
40                pacing: 7
41              vrf: "default"
42            - address_family:
43                - afi: "ipv4"
44                  fips_restrictions: true
45                  maximum_paths: 100
46                  passive_interface: true
47                  redistribute:
48                    - route_map: "MAP01"
49                      routes: "connected"
50                - afi: "ipv6"
51                  areas:
52                    - area_id: "0.0.0.10"
53                      nssa:
54                        no_summary: true
55                  default_information:
56                    originate: true
57                    route_map: "DefaultRouteFilter"
58                  fips_restrictions: true
59                  max_metric:
60                    router_lsa:
61                      external_lsa:
62                        max_metric_value: 25
63                      summary_lsa:
64                        set: true
65              areas:
66                - area_id: "0.0.0.0"
67                  encryption:
68                    spi: 44
69                    algorithm: "sha1"
70                    encryption: "null"
71                    hidden_key: true
72                    passphrase: "7hl8FV3lZ6H1mAKpjL47hQ=="
73              fips_restrictions: true
74              log_adjacency_changes:
75                detail: true
76              vrf: "vrf01"
77            - address_family:
78                - afi: "ipv6"
79                  areas:
80                    - area_id: "0.0.0.1"
81                      stub:
82                        set: true
83                  distance: 200
84                  fips_restrictions: true
85                  router_id: "10.17.0.3"
86                  timers:
87                    out_delay: 10
88                    throttle:
89                      initial: 56
90                      max: 56
91                      min: 56
92                      spf: true
93              fips_restrictions: true
94              vrf: "vrf02"
95        state: rendered
96
97    - assert:
98        that:
99          - result.changed == false
100          - result.rendered|symmetric_difference(merged.commands) == []
101