CESNET / netopeer2

NETCONF toolset
BSD 3-Clause "New" or "Revised" License
290 stars 186 forks source link

Need a clarification #1572

Open biswajit84 opened 2 months ago

biswajit84 commented 2 months ago

Hi, I am trying to understand how netopeer can help me in bringing up mplane. As I am new starting with basic doubts: Objective: Establish TLS netconf session with client->Initiate Callhome->On callhome reply wait for request

So to achieve this, am I supposed to netconf API for TLS session and and use sysrepo api,the callback will invoke to read the config data. OR in netopeer we have apis which can be achieved without calling sysrespo apis explicitely.

Regards, Biswajit

michalvasko commented 2 months ago

netopeer2 is just a NETCONF interface for sysrepo, you will not interact with it locally at all. I would suggest you start by reading about sysrepo to learn about its features. As for a NETCONF connection, I do not understand what you want to do. You can either connect normally or using Call Home so I am going to assume you want the latter. For that you will have to configure netopeer2 to initiate Call Home connections, find out in README how. You can use sysrepocfg to import/merge configuration files into sysrepo.