Commit the candidate configuration. @throws net.juniper.netconf.CommitException if there was an error committing the configuration. @throws java.io.IOException If there are errors communicating with the netconf server. @throws org.xml.sax.SAXException If there are errors
()
| 1108 | * @throws org.xml.sax.SAXException If there are errors parsing the XML reply. |
| 1109 | */ |
| 1110 | public void commit() throws CommitException, IOException, SAXException { |
| 1111 | if (netconfSession == null) { |
| 1112 | throw new IllegalStateException("Cannot execute RPC, you need to " + |
| 1113 | "establish a connection first."); |
| 1114 | } |
| 1115 | this.netconfSession.commit(); |
| 1116 | } |
| 1117 | |
| 1118 | /** |
| 1119 | * Commit the candidate configuration, temporarily. This is equivalent of |