'Imports a new public key where the public key is passed via a filename
:param     name: The name of the public key to import.
:type      name: ``str``
:param     keyfile: The filename with path of the public key to import.
:type      keyfile: ``str``
:rtype: ``dict``'

def ex_import_keypair(self, name, keyfile):

    warnings.warn('This    method    has    been    deprecated    in    favor    of    import_key_pair_from_file    method')
    key_pair = self.import_key_pair_from_file(name=name, key_file_path=keyfile)
    result = {'keyName': key_pair.name, 'keyFingerprint': key_pair.fingerprint}
    return result
