'Import a KeyPair from a file
:param name: Name of the new KeyPair
:type  name: ``str``
:param keyfile: Path to the public key file (in OpenSSH format)
:type  keyfile: ``str``
:rtype: :class:`OpenStackKeyPair`'

def ex_import_keypair(self, name, keyfile):

    warnings.warn('This    method    has    been    deprecated    in    favor    of    import_key_pair_from_file    method')
    return self.import_key_pair_from_file(name=name, key_file_path=keyfile)
