Hi @michalvasko
We are working on an O-RAN based ORU (O-RU) implementation using Netopeer2 + sysrepo (libnetconf2 underneath) on an embedded Linux platform.
Environment:
NETCONF server: Netopeer2-server (running as: netopeer2-server -v3 -t 10)
libnetconf2 v3.5.4
Backend: sysrepo v2.2.36
Transport: SSH (Call Home enabled)
Architecture: ORU and ORU-Controller
Connection type: persistent Call Home
Platform: embedded Linux (watchdog enabled, process restart sensitive) (aarch64)
Current Behavior :
We successfully establish a NETCONF Call Home connection from the ORU (server side) to the controller.
However, we are facing an issue when trying to terminate the active Call Home session from the ORU side.
What We Tried:
- Sysrepo config change
Removed call-home block from ietf-netconf-server running sysrepo
Result: prevents future reconnections, but existing session remains active
- Signals to netopeer2-server
SIGUSR1 → session closes, but watchdog connection drop → resulted in system reboot
SIGTERM → causes full service restart and system rebooted
- Network-level methods
iptables / socket-level attempts not viable in this environment
- Kill-session
Attempted to trigger the kill-session RPC from using the Sysrepo sr_rpc_send_tree API.
The implementation looks like this:
The sr_rpc_send_tree call returns an error.
We need a way to: Gracefully terminate an active Call Home NETCONF session from the ORU side, without:
- restarting netopeer2-server
- triggering watchdog
- relying on controller-side disconnect
Question:
1.) Is there a supported way in Netopeer2/libnetconf2 to cleanly close an active Call Home session from the server side (without restarting the process)?
2.) Is controller-side disconnect the only expected approach for this scenario?
Thanks!
Hi @michalvasko
We are working on an O-RAN based ORU (O-RU) implementation using Netopeer2 + sysrepo (libnetconf2 underneath) on an embedded Linux platform.
Environment:
NETCONF server: Netopeer2-server (running as: netopeer2-server -v3 -t 10)
libnetconf2 v3.5.4
Backend: sysrepo v2.2.36
Transport: SSH (Call Home enabled)
Architecture: ORU and ORU-Controller
Connection type: persistent Call Home
Platform: embedded Linux (watchdog enabled, process restart sensitive) (aarch64)
Current Behavior :
We successfully establish a NETCONF Call Home connection from the ORU (server side) to the controller.
However, we are facing an issue when trying to terminate the active Call Home session from the ORU side.
What We Tried:
Removed call-home block from ietf-netconf-server running sysrepo
Result: prevents future reconnections, but existing session remains active
SIGUSR1 → session closes, but watchdog connection drop → resulted in system reboot
SIGTERM → causes full service restart and system rebooted
iptables / socket-level attempts not viable in this environment
Attempted to trigger the kill-session RPC from using the Sysrepo sr_rpc_send_tree API.
The implementation looks like this:
The sr_rpc_send_tree call returns an error.
We need a way to: Gracefully terminate an active Call Home NETCONF session from the ORU side, without:
Question:
1.) Is there a supported way in Netopeer2/libnetconf2 to cleanly close an active Call Home session from the server side (without restarting the process)?
2.) Is controller-side disconnect the only expected approach for this scenario?
Thanks!