'Sends configuration commands to the remote device'

def load_config(self, config):

    (rc, out, err) = self.exec_command('mmi-mode    enable')
    if (rc != 0):
        self._module.fail_json(msg='unable    to    set    mmi-mode    enable', output=err)
    (rc, out, err) = self.exec_command('system-view    immediately')
    if (rc != 0):
        self._module.fail_json(msg='unable    to    enter    system-view', output=err)
    for cmd in config:
        (rc, out, err) = self.exec_command(cmd)
        if (rc != 0):
            self._module.fail_json(msg=cli_err_msg(cmd.strip(), err))
    self.exec_command('return')
