[Contents] [Prev] [Next] [Index] [Report an Error]

# Ending a NETCONF Session and Closing the Connection

When a client application is finished making requests, it ends the NETCONF session by emitting the empty <close-session/> tag within an <rpc> tag element:

`

    <rpc>
        <close-session/>
    </rpc>
    ]]>]]>

`

In response, the NETCONF server emits the <ok/> tag enclosed in an <rpc-reply> tag element:

`

    <rpc-reply xmlns="URN "xmlns:sdx="URL”>
        <ok/>
    </rpc-reply>
    ]]>]]>

`

For an example of the exchange of closing tag elements, see Closing the NETCONF Session.

Because the connection to the NETCONF server is an SSH subsystem, it closes automatically when the NETCONF session ends.

[Contents] [Prev] [Next] [Index] [Report an Error]