Giter Club home page Giter Club logo

Comments (8)

michalvasko avatar michalvasko commented on August 16, 2024

Generally ignore netopeer2, it is just a NETCONF server interface for sysrepo. Learn about its basics in the docs by playing with the plugin example.

from netopeer2.

biswajit84 avatar biswajit84 commented on August 16, 2024

Hi,
Is there any document available stating how netopeer should follow the sequence to connect with netconf and sysrepo followed by fetching the data.?

Regards,
Biswajit

from netopeer2.

michalvasko avatar michalvasko commented on August 16, 2024

I do not understand the question but I suggest you go through the whole sysrepo docs and you should be able to understand all the basic principles.

from netopeer2.

biswajit84 avatar biswajit84 commented on August 16, 2024

Hi,
Now I am able to integrate the custom yang having operational data with sysrepo and then from other application(client) able to fetch the values. The Current application is just similar to oper_data_pull_example.c and sr_get_items_example

End Objective: The client should be connected over TLS and then its allowed to access the sysrepo.
I have few basic doubts:

  1. As netopeer2 application(netopeer2-server & netopeer2-cli) has been generated by using netconf,sysrepo,libyang library.
    I am bit confused use case of netopeer frame work in real time scenario.
  2. Is it possible so that netopeer2-server can notify the user specific application if there is request of fetching operational data from client connected over TLS.

Regards,
Biswajit

from netopeer2.

michalvasko avatar michalvasko commented on August 16, 2024
  1. I do not understand, how has netopeer2 been "generated"? And not sure what you mean by real-time scenario, do you have any specific timing constraints?
  2. It should not matter what client requests the data but you should be able to retrieve NETCONF session ID of the originator session in the oper data callback so it may be possible to learn its transport protocol. Still, seems like a strange requirement that is perhaps the result of a faulty design.

from netopeer2.

biswajit84 avatar biswajit84 commented on August 16, 2024

Hi
I am extremely sorry for not able to putting my words correctly.
After building the netopeer2 package,netopeer2-server and netopeer2-cli binary has been generated.
We are trying to develop oran based application in which will act as netconf server.
So is there any api support of netopeer2 is there so that using that it can create the netconf TLS session internally and when ever any request from client is there it can invoke our callbacks OR we have use netconf and sysrepo apis to achieve this feature.

Regards,
Biswajit

from netopeer2.

jktjkt avatar jktjkt commented on August 16, 2024

You might want to revisit the sysrepo's website and re-read the documentation; doing that will make it clear what the purpose and division of responsibilities between libyang, sysrepo, libnetconf2 and netopeer2 are. The answer to the question which you asked is explained in the documentation.

from netopeer2.

michalvasko avatar michalvasko commented on August 16, 2024

What @jktjkt said although I can also briefly answer. sysrepo is the central library that handles all the local configuration. What netopeer2-server does is only extends the functionality with a remote NETCONF interface so your local applications can ignore it. Whenever a NETCONF request is received, your sysrepo callbacks will automatically be invoked (as long as applicable). Learn more about all kinds of subscriptions sysrepo supports to know what kinds of callbacks can you register.

from netopeer2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.