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:
parent
e620e27609
commit
ee8a607cca
3 changed files with 18 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue