parameters: (prefix)
return_statement: return ipnetwork.sprint_addr(ip_addr)
docstring: :param prefix: IpPrefix representing an allocation prefix (CIDR network)
  
      :returns: Loopback IP corresponding to allocation prefix
      :rtype: string
docstring_summary: :param prefix: IpPrefix representing an allocation prefix (CIDR network)
docstring_tokens: : param prefix : IpPrefix representing an allocation prefix ( CIDR network )
function: def alloc_prefix_to_loopback_ip_str(prefix):
      """
      :param prefix: IpPrefix representing an allocation prefix (CIDR network)
  
      :returns: Loopback IP corresponding to allocation prefix
      :rtype: string
      """
  
      ip_addr = prefix.prefixAddress.addr
      print(ip_addr)
      if prefix.prefixLength != 128:
          ip_addr = ip_addr[:-1] + chr(ord(ip_addr[-1]) | 1)
      print(ip_addr)
      return ipnetwork.sprint_addr(ip_addr)
function_tokens: def alloc_prefix_to_loopback_ip_str ( prefix ) : ip_addr = prefix . prefixAddress . addr print ( ip_addr ) if prefix . prefixLength != 128 : ip_addr = ip_addr [ : - 1 ] + chr ( ord ( ip_addr [ - 1 ] ) | 1 ) print ( ip_addr ) return ipnetwork . sprint_addr ( ip_addr )