mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-06 18:53: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:
committed by
Nilashish Chakraborty
parent
e620e27609
commit
ee8a607cca
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user