End a Junos XML Protocol Session and Close the Connection
In a Junos XML protocol session with a Junos device, when a client application is
finished making requests, it ends the session by emitting the
<request-end-session/> tag within an
<rpc> tag element.
<rpc>
<request-end-session/>
</rpc>
In response, the Junos XML protocol server emits the
<end-session/> tag enclosed in an
<rpc-reply> tag element and a closing
</junoscript> tag.
<rpc-reply xmlns:junos="URL">
<end-session/>
</rpc-reply>
</junoscript>
The client application waits to receive this reply before emitting its closing
</junoscript> tag.
</junoscript>
The client application can then close the SSH, SSL, or other connection to the Junos XML protocol server device.