CESNET / netopeer2

NETCONF toolset
BSD 3-Clause "New" or "Revised" License
300 stars 188 forks source link

How to end a specific netconf session connection through session ID ? #1578

Open Ray123456a opened 4 months ago

Ray123456a commented 4 months ago

Hello,I wanna know how to cut off a specific neconf session through session ID, whatever use the code or spcript. I have tried the "sr_session_stop(subscription)" / “sr_session_stop(session)” / "sr_disconnect(connection)" interface function, they are all not worked right.

michalvasko commented 4 months ago

You can affect NETCONF sessions only using another NETCONF session. So connect to netopeer2 and use kill-session to kill the other session.