'Import a new public key from string.
:param name: Key pair name.
:type name: ``str``
:param key_file_path: Path to the public key file.
:type key_file_path: ``str``
:rtype: :class:`.KeyPair` object'

def import_key_pair_from_file(self, name, key_file_path):

    key_file_path = os.path.expanduser(key_file_path)
    with open(key_file_path, 'r') as fp:
        key_material = fp.read()
    return self.import_key_pair_from_string(name=name, key_material=key_material)
