I search the best method to replace last number of an IP with Jinja2.
I need to replace the last octet of the IP:
{% set ip = "192.168.1.1" %}
{% set points == ip.split('.') %}
{{ points | last | replace (points | last , "0") }}
Result: 0
Desired result: 192.168.1.0