MCPcopy Create free account
hub / github.com/Juniper/netconf-java / lockConfig

Method lockConfig

src/main/java/net/juniper/netconf/Device.java:957–963  ·  view source on GitHub ↗

Locks the candidate configuration. @return true if successful. @throws java.io.IOException If there are errors communicating with the netconf server. @throws org.xml.sax.SAXException If there are errors parsing the XML reply. @throws IllegalStateException if the connection is not establishe

()

Source from the content-addressed store, hash-verified

955 * @throws IllegalStateException if the connection is not established
956 */
957 public boolean lockConfig() throws IOException, SAXException {
958 if (netconfSession == null) {
959 throw new IllegalStateException("Cannot execute RPC, you need to " +
960 "establish a connection first.");
961 }
962 return this.netconfSession.lockConfig();
963 }
964
965 /**
966 * Unlocks the candidate configuration.

Calls

no outgoing calls