Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation fix #20198

Merged
merged 1 commit into from
Jan 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/docsite/rst/playbooks_filters_ipaddr.rst
Original file line number Diff line number Diff line change
Expand Up @@ -429,25 +429,25 @@ a first argument, ``ipsubnet()`` filter will instead return biggest subnet that
contains a given IP address::

# {{ address | ipsubnet(20) }}
192.168.128.0/18
192.168.128.0/20

By specifying an index number as a second argument, you can select smaller and
smaller subnets::

# First subnet
# {{ subnet | ipsubnet(18, 0) }}
# {{ address | ipsubnet(18, 0) }}
192.168.128.0/18

# Last subnet
# {{ subnet | ipsubnet(18, -1) }}
# {{ address | ipsubnet(18, -1) }}
192.168.144.4/31

# Fifth subnet
# {{ subnet | ipsubnet(18, 5) }}
# {{ address | ipsubnet(18, 5) }}
192.168.144.0/23

# Fifth to last subnet
# {{ subnet | ipsubnet(18, -5) }}
# {{ address | ipsubnet(18, -5) }}
192.168.144.0/27

You can use ``ipsubnet()`` filter with ``ipaddr()`` filter to for example split
Expand Down