From da770575662f933bfa2c114f5bc67d8a66d4f527 Mon Sep 17 00:00:00 2001 From: Mukhammad Karimov Date: Tue, 19 Feb 2019 23:38:39 +0500 Subject: [PATCH] Update filter documentation (#52575) Added documentation for ip4_hexr filter --- docs/docsite/rst/user_guide/playbooks_filters_ipaddr.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/docsite/rst/user_guide/playbooks_filters_ipaddr.rst b/docs/docsite/rst/user_guide/playbooks_filters_ipaddr.rst index d9d0ea30b7c..e24a6a8d009 100644 --- a/docs/docsite/rst/user_guide/playbooks_filters_ipaddr.rst +++ b/docs/docsite/rst/user_guide/playbooks_filters_ipaddr.rst @@ -368,6 +368,13 @@ integers into IP addresses:: # {{ test_list | ipaddr('address') | ipaddr('int') }} [3222798849, 1, '3232243712/24', '338288524927261089654018896841347694848/10', '42540766412265424405338506004571095040/64'] + +You can convert IPv4 address to `Hexadecimal notation `_ with optional delimiter:: + + # {{ '192.168.1.5' | ip4_hex }} + c0a80105 + # {{ '192.168.1.5' | ip4_hex(':') }} + c0:a8:01:05 You can convert IP addresses to PTR records::