Close the Connection to the NETCONF Server in Perl Client Applications
In NETCONF Perl client applications, you can end the NETCONF
session and close the connection to the device by invoking the disconnect
method.
Several of the sample scripts included in the NETCONF
Perl client distribution invoke the disconnect
method in standalone statements. For example:
$jnx->disconnect();
The edit_configuration.pl sample script invokes the graceful_shutdown
method, which takes the appropriate actions with regard to the configuration
database and then invokes the disconnect
method.
graceful_shutdown($jnx, $xmlfile, STATE_LOCKED, REPORT_SUCCESS);