@check_empty()<EOL>def prefix_to_addrmask(value, sep="<STR_LIT:U+0020>"):
prefix = netaddr.IPNetwork(value)<EOL>return "<STR_LIT>".format(prefix.ip, sep, prefix.netmask)<EOL>
Converts a CIDR formatted prefix into an address netmask representation.
Argument sep specifies the separator between the address and netmask parts.
By default it's a single space.

Examples:
    >>> "{{ '192.168.0.1/24|prefix_to_addrmask }}" -> "192.168.0.1 255.255.255.0"
    >>> "{{ '192.168.0.1/24|prefix_to_addrmask('/') }}" -> "192.168.0.1/255.255.255.0"