def _canonicalize_ip(self, ip_address):
    '\n        rtslib expects ipv4 addresses as a dotted-quad string, and IPv6\n        addresses surrounded by brackets.\n        '
    if ('.' in ip_address):
        return ip_address
    return (('[' + ip_address) + ']')
rtslib expects ipv4 addresses as a dotted-quad string, and IPv6
addresses surrounded by brackets.
def _canonicalize_ip(self, ip_address):
    '\n        rtslib expects ipv4 addresses as a dotted-quad string, and IPv6\n        addresses surrounded by brackets.\n        '
    if ('.' in ip_address):
        return ip_address
    return (('[' + ip_address) + ']')