<lock>

The <lock> operation locks a configuration database. A locked configuration database cannot be modified by other clients. The locks eliminate errors caused by simultaneous database modifications by the NETCONF manager and other NETCONF managers or Simple Network Management Protocol (SNMP) or command-line interface (CLI) scripts.

If the specified configuration database is already locked by a client, the <error-tag> element will be "lock-denied" and the <error-info> element will include the <session-id> of the lock owner.

If the <running/> configuration database is successfully locked:

If the NMDA data set is supported, the data set format in the target configuration database is different, as shown in the following:

If the <running/> configuration database fails to be locked:

If the NMDA data set is supported, the data set format in the target configuration database is different, as shown in the following:

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >