def check_config_mode(self, check_string=''):
        self.remote_conn.sendall('\n')
        output = self.read_until_prompt()
        return check_string in output
Checks if the device is in configuration mode or not.
dataset/ETHPy150Open ktbyers/netmiko/netmiko/base_connection.py/BaseSSHConnection.check_config_mode