Expand all | Collapse all

Cancel a pending "commit confirmed"

Jump to Best Answer
  • 1.  Cancel a pending "commit confirmed"

    Posted 10-04-2016 13:06

    Is there any way to cancel a pending "commit confirmed" command? Say you gave yourself 5 minutes to see if your active configuration was going to work, and you realize - oh, I missed something lets just rollback now - what could I do to initiate the rollback without having to wait the 5 minutes??


    I can type rollback 0, or any other number of rollbacks while a commit confirmed is ticking down, and it still doesn't matter, the configuration will rollback again.


    Any suggestions?



  • 2.  RE: Cancel a pending "commit confirmed"
    Best Answer

    Posted 10-04-2016 13:20


    # rollback 1
    # commit

    should rollback the config immediately.




  • 3.  RE: Cancel a pending "commit confirmed"

    Posted 10-10-2016 08:11

    Thanks ,


    I get it now - thank you!

  • 4.  RE: Cancel a pending "commit confirmed"

    Posted 06-20-2018 08:35

    Hi, thanks for the answer. Is there a netconf command to do this?
    I tried the standard netconf command cancel-commit (see (via the ncclient python library), and it did not work:
    <?xml version="1.0" encoding="UTF-8"?><nc:rpc xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:95bff4fb-5faa-444b-91ff-f3dc887541d3"><nc:cancel-commit/></nc:rpc>]]>]]>
    <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:junos="" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:95bff4fb-5faa-444b-91ff-f3dc887541d3">
    <error-message>syntax error</error-message>
    The closest one I could find is this one:
    However this does a different thing: rolls back the candidate configuration to the current running configuration.

  • 5.  RE: Cancel a pending "commit confirmed"

    Posted 06-21-2018 02:36



    The rpc for commit-configuration is:


    with additional arguments such as confirmed:



    I don't think there's a cancel-commit as per the RFC in the native junos netconf.

    However, you can do a rollback 1 and then commit similar to the cli procedure:


    <load-configuration rollback='1'/>


    Hope this works.