[350-401]Exclusive control with Python scripts


Network administrators are preparing Python scripts to set up network devices running ONS XE-based. Administrators are concerned about coworkers changing settings on their devices while the script is running. What is the client manager’s action to prevent colleagues from make changes to the device while the script is running?
  1. m.lock (config = ‘running’)
  2. m.lock (target = ‘running’)
  3. m.freeze (config = ‘running’)
  4. m.freeze (target = ‘running’)
See answers


Python lock() object

It is a Python object used for exclusive control when parallel processing.
() specifies the specified resource and controls (blocks) the processing if the work/command performed matches.

<参考>Python Documentation (threading)</参考>

IOS NETCONF target /config/

Resources in the NETCONF Configuration Store

<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<参考> Cisco Programmability Guide</参考>