1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-05-12 20:54:12 +00:00

ipaddr: Handle network address in ipmath (#57149)

* Updated testcase, documentation

Fixes: #54457

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2019-06-04 14:01:19 +05:30 committed by Nilashish Chakraborty
parent e620e27609
commit ee8a607cca
3 changed files with 18 additions and 2 deletions

View file

@ -448,6 +448,15 @@ Here are a few simple examples::
# {{ '192.168.0.5' | ipmath(-10) }}
192.167.255.251
# {{ '192.168.1.1/24' | ipmath(5) }}
192.168.1.6
# {{ '192.168.1.6/24' | ipmath(-5) }}
192.168.1.1
# {{ '192.168.2.6/24' | ipmath(-10) }}
192.168.1.252
# {{ '2001::1' | ipmath(10) }}
2001::b