Question 1
Choose 2
You are trying to create a playbook that creates a manual task showing a list of public IPv6 addresses. You
were successful in extracting all IP addresses from a previous action into a variable calledip_list, which
contains both private and public IPv4 and IPv6 addresses. You must now filter the results to display only
public IPv6 addresses. Which two Jinja expressions can accomplish this task? (Choose two answers)
Correct answer:
B. {{ vars.ip_list | ipaddr('public') | ipv6 }}
D. {{ vars.ip_list | ipv6 | ipaddr('public') }}
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.
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.
