'Return the initiator host name.
Valid characters: 0-9, a-z, A-Z, \'-\', \'_\'
All other characters are replaced with \'_\'.
Total characters in initiator host name: 32'

def get_initiator_host_name(self, connector):

    return re.sub('[^0-9a-zA-Z-_]', '_', connector.get('host', ''))[:32]
