confirmed commit

term

networkingops culture

Kept in this browser · My desk

A configuration commit that takes effect at once but is rolled back automatically unless a second, confirming commit arrives within a set time, so that a change which cuts off management access undoes itself.

Junos offers 'commit confirmed', and NETCONF standardized it as the :confirmed-commit capability (RFC 4741, then RFC 6241), with a default window of 600 seconds. If the change locks you out, the device reverts when the timer expires; if it works, you confirm. RFC 6241 also reverts on a reboot and, unless persist is used, when the session that issued it ends. It turns the classic three-in-the-morning lockout into a ten-minute wait, but does not replace a console for crashes or power loss.

What it is. Many network operating systems separate a candidate configuration from the running one and apply changes with a commit. A confirmed commit applies the candidate immediately and arms a timer; a later plain commit (the confirming commit) makes the change permanent; if none arrives before the timer expires, the device restores the configuration that was running before. Juniper's documentation states the purpose directly: "The confirmed commit operation is useful for verifying that a configuration change works correctly and does not prevent management access to the device. If the change prevents access or causes other errors, the automatic rollback to the previous configuration restores access after the rollback deadline passes", and the default is "600 seconds (10 minutes)".

Standard. NETCONF defines it as a capability. RFC 6241 (June 2011), edited by R. Enns, M. Bjorklund, J. Schoenwaelder and A. Bierman, specifies :confirmed-commit:1.1: "A confirmed <commit> operation MUST be reverted if a confirming commit is not issued within the timeout period (by default 600 seconds = 10 minutes)"; <confirm-timeout> changes the period, and a follow-up confirmed commit resets the timer. Two further rules matter in practice. If the session that issued the confirmed commit "is terminated for any reason before the confirm timeout expires, the server MUST restore the configuration", unless the <persist> parameter was given, in which case any session presenting the matching <persist-id> may confirm. And "If the device reboots for any reason before the confirm timeout expires, the server MUST restore the configuration". Version 1.1 added <cancel-commit>, to revert without waiting, and the persist parameters; version 1.0 was defined in RFC 4741. Because a revert restores the whole datastore, RFC 6241 advises locking the configuration when it is shared, since other sessions' changes "can be inadvertently altered or removed".

Junos details. Juniper's NETCONF documentation adds the mechanics: the confirm timeout can be set from 1 to 4,294,967,295 seconds; sending another confirmed commit before the deadline delays the rollback again, by the default 600 seconds if no timeout is given, so a client "can delay the rollback indefinitely"; a plain commit before the deadline cancels the rollback; if another application kills the session while a confirmed commit is pending, the server restores the previous configuration; and a confirmed commit cannot be performed on the ephemeral configuration database.

Why it matters. RFC 8368 names the underlying problem: operations work "can easily but unintentionally break the connectivity required for its own operations", especially changes to routing, forwarding, security and addressing. The 2002 IAB workshop on network management recorded operators asking for configuration transactions and "rollback across devices in error situations" (RFC 3535). A confirmed commit is the single-device answer: the device itself guarantees that a change which isolates it will not stay applied.

Worked example. 02:58, commit with a 10-minute confirmation; 02:59, the SSH session freezes because the change removed the operator's route; at 03:08 no confirmation has arrived and the device restores the previous configuration; at 03:09 the session reconnects. Had the change worked, a plain commit before 03:08 would have kept it. In NETCONF, the same timeline happens automatically if the client's session is cut, because session loss itself triggers the revert.

What goes wrong. The window is too short for a change that legitimately takes longer to converge (a routing process restart, a large BGP reload), so a good change is reverted; or too long, leaving a broken change in place for many minutes. Automation that confirms immediately defeats the purpose. A confirmed commit does not help when the change crashes the control plane in a way that prevents the rollback, or when power is lost mid-change: then the console or another out-of-band path is still needed. Shared datastores without locking can lose other people's changes on revert.

Neighbours. Rollback is the general idea; change management decides when it is used; NETCONF and YANG carry it in automation; out-of-band management is the safety net when the timer is not enough.

Also known as: commit confirmed, rollback timer, confirmed-commit capability, cancel-commit

← Back to C Back to the glossary