def rollback():
    ret = dict()
    conn = __proxy__['junos.conn']()

    ret['out'] = conn.cu.rollback(0)

    if ret['out']:
        ret['message'] = 'Rollback successful'
    else:
        ret['message'] = 'Rollback failed'

    return ret
To rollback the last committed configuration changes
dataset/ETHPy150Open saltstack/salt/salt/modules/junos.py/rollback