Send an RPC(as String object) over the default Netconf session and get the response as an XML object. Convenience overload for raw‑string payloads. @param rpcContent RPC content to be sent. For example, to send an rpc <rpc><get-chassis-inventory/></rpc>, t
(String rpcContent)
| 763 | * @throws org.xml.sax.SAXException If there are errors parsing the XML reply. |
| 764 | */ |
| 765 | public XML executeRPC(String rpcContent) throws SAXException, IOException { |
| 766 | if (netconfSession == null) { |
| 767 | throw new IllegalStateException("Cannot execute RPC, you need to " + |
| 768 | "establish a connection first."); |
| 769 | } |
| 770 | return netconfSession.executeRPC(rpcContent); |
| 771 | } |
| 772 | |
| 773 | /** |
| 774 | * Send an RPC(as XML object) over the Netconf session and get the response |
no outgoing calls