'Sends the ordered set of commands to the device'

def configure(self, commands):

    cmds = ['configure    terminal']
    cmds.extend(commands)
    responses = self.send_request(commands)
    if ('error' in responses):
        err = responses['error']
        self._module.fail_json(msg=err['message'], code=err['code'])
    return responses[1:]
