def send_config_set(self, config_commands=None, exit_config_mode=True, **kwargs):
        return super(CiscoXrSSH, self).send_config_set(config_commands=config_commands,
                                                       exit_config_mode=False, **kwargs)
IOS-XR requires you not exit from configuration mode.
dataset/ETHPy150Open ktbyers/netmiko/netmiko/cisco/cisco_xr_ssh.py/CiscoXrSSH.send_config_set