Show answerHide answer
Correct answer: B, D {{ vars.ip_list | ipaddr('public') | ipv6 }} {{ vars.ip_list | ipv6 | ipaddr('public') }}
Explanation
Explanation:This question tests your ability to manipulate IP address lists using Jinja filters within FortiSIEM. The filters ipaddr and ipv6 can be chained in different sequences to refine the raw ip_list variable, ensuring the final output contains only valid public IPv6 addresses.
✅ B. {{ vars.ip_list | ipaddr('public') | ipv6 }}:
This expression first filters the entire list to keep only addresses categorized as public. It then takes that resulting list and applies the ipv6 filter, which discards any remaining IPv4 addresses, successfully isolating the public IPv6 subset.
✅ D. {{ vars.ip_list | ipv6 | ipaddr('public') }}:
This expression performs the same task but in reverse order. It first filters the list to keep only IPv6 addresses and then applies the public filter to remove any private or link-local IPv6 addresses, achieving the same final result of a filtered public IPv6 list.
❌ A. {{ vars.ip_list | ipv6addr('public') }}:
While ipv6addr is a valid filter in some Ansible-based environments, FortiSIEM automation workflows primarily utilize the ipaddr library. ipv6addr is not a standard, recognized filter within the FortiSIEM Jinja schema for this specific operational requirement.
❌ C. {{ vars.ip_list | ipaddr('!private') | ipv6 }}:
The !private syntax is not the standard way to define inclusion criteria for public addresses in FortiSIEM Jinja filters. The filter ipaddr('public') is the correct, explicit method for identifying public-facing IP addresses, whereas !private can lead to inconsistent handling of non-routable or reserved address ranges.
🔧 Reference:
→ FortiSIEM Automation Jinja2 Filters
This resource documents the supported IP filtering syntax for workflow variables.
