-name:gathering IP addresses for "{{ container.name }}"
set_fact:
container_options:{}
_container_options:{}
-set_fact:
container_options:>-
-name:gathering IP addresses for "{{ container.name }}" within NAT settings
set_fact:
_container_options:>-
{% set opts = {} -%}
{% if item.container == container.name -%}
{% do opts.update({'ipv4': ((container_options | default({})).ipv4 | default([])) + [item.ipv4]}) if item.ipv4 is defined and not (item.ipv4 in ((container_options | default({})).ipv4 | default([]))) -%}
{% do opts.update({'ipv6': ((container_options | default({})).ipv6 | default([])) + [item.ipv6]}) if item.ipv6 is defined and not (item.ipv6 in ((container_options | default({})).ipv6 | default([]))) -%}
{% if _natif.container == container.name -%}
{% do opts.update({'ipv4': ((_container_options | default({})).ipv4 | default([])) + [_natif.ipv4]}) if _natif.ipv4 is defined and not (_natif.ipv4 in ((_container_options | default({})).ipv4 | default([]))) -%}
{% do opts.update({'ipv6': ((_container_options | default({})).ipv6 | default([])) + [_natif.ipv6]}) if _natif.ipv6 is defined and not (_natif.ipv6 in ((_container_options | default({})).ipv6 | default([]))) -%}
-name:gathering IP addresses for "{{ container.name }}" within network device settings
set_fact:
_container_options:>-
{% set opts = {} -%}
{% if item.value.container == container.name -%}
{% do opts.update({'ipv4': ((container_options | default({})).ipv4 | default([])) + [item.value.ipv4]}) if item.value.ipv4 is defined and not (item.value.ipv4 in ((container_options | default({})).ipv4 | default([]))) -%}
{% do opts.update({'ipv6': ((container_options | default({})).ipv6 | default([])) + [item.value.ipv6]}) if item.value.ipv6 is defined and not (item.value.ipv6 in ((container_options | default({})).ipv6 | default([]))) -%}
{% if _natif.value.container == container.name -%}
{% do opts.update({'ipv4': ((_container_options | default({})).ipv4 | default([])) + [_natif.value.ipv4]}) if _natif.value.ipv4 is defined and not (_natif.value.ipv4 in ((_container_options | default({})).ipv4 | default([]))) -%}
{% do opts.update({'ipv6': ((_container_options | default({})).ipv6 | default([])) + [_natif.value.ipv6]}) if _natif.value.ipv6 is defined and not (_natif.value.ipv6 in ((_container_options | default({})).ipv6 | default([]))) -%}