Changes between Version 35 and Version 36 of Usage/TemplatingDocumentation


Ignore:
Timestamp:
08/29/13 11:17:49 (7 years ago)
Author:
ramonb
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Usage/TemplatingDocumentation

    v35 v36  
    149149}}}
    150150
     151== reverse_names ==
     152
     153Return's a CIDR reverse (arpa) name
     154
     155'''Usage'''
     156{{{
     157{{ <variable>|reverse_names }}
     158}}}
     159
     160'''Examples'''
     161{{{
     162{% assign ip4cidr24 = '192.168.1.0/24' %}
     163ip4cidr/24 = {{{ ip4cidr24 }}}
     164ip4cidr/24 reverse names = {{{ ip4cidr24|reverse_names }}}
     165
     166{% assign ip4cidr30 = '192.168.1.0/30' %}
     167ip4cidr/30 = {{{ ip4cidr30 }}}
     168ip4cidr/30 reverse names = {{{ ip4cidr30|reverse_names }}}
     169
     170{% assign ip6cidr64 = 'fd93:59ef:8ce1:aac8::/64' %}
     171ip6cidr/64 reverse names  = {{{ ip6cidr64|reverse_names }}}
     172}}}
     173
     174'''Example output'''
     175{{{
     176ip4cidr/24 = 192.168.1.0/24
     177ip4cidr/24 reverse names = 1.168.192.in-addr.arpa.
     178
     179ip4cidr/30 = 192.168.1.0/30
     180ip4cidr/30 reverse names = 0.1.168.192.in-addr.arpa.
     181ip4cidr/30 reverse names = 1.1.168.192.in-addr.arpa.
     182ip4cidr/30 reverse names = 2.1.168.192.in-addr.arpa.
     183ip4cidr/30 reverse names = 3.1.168.192.in-addr.arpa.
     184
     185ip6cidr/64 = fd93:59ef:8ce1:aac8::/64
     186ip6cidr/64 reverse names = 8.c.a.a.1.e.c.8.f.e.9.5.3.9.d.f.ip6.arpa.
     187}}}
     188
    151189
    152190= Functions =