CESNET / netopeer

NETCONF Protocol Toolset
117 stars 65 forks source link

Mininet cooperation #157

Closed aljer-priv closed 6 years ago

aljer-priv commented 6 years ago

Hi all, I am working on a project in which I have to use NETCONF server to collect data about network emulted in mininet environment. I have to use specific YANG data model (te-topology). I know how to implement custom model on Netopeer server, but I don't know if there is any possibility to connect Netopeer with mininet... Could you give me any advices for this issue? Is there any possibility to do that?

I would be extremaly grateful for any advice. Best regards, Ola

michalvasko commented 6 years ago

Hi Ola, I have zero experience with mininet so I cannot really help you. I presume the virtual network can be connected to using an interface on the host machine so I guess that is your entry point (what exactly do you mean by connect Netopeer with mininet?). However, we do not support netopeer-server anymore, so please use netopeer2 if you can.

Regards, Michal

aljer-priv commented 6 years ago

Hi Michal, I mean if it is possible to collect data from switches running in emulated network. Could you maybe give me some outline, how the Netopeer server can impact on other devices? How it works that making changes in database cause changes in devices working?

Regards, Ola

michalvasko commented 6 years ago

netopeer is simply a NETCONF server implementation, so it will not collect any data, strictly speaking. What it does is remote configuration of devices using transAPI modules. I am not sure what you are asking, but that is the way netopeer impacts other devices, you must write a transAPI module for them and then, based on the NETCONF configuration datastore changes the device will change its behavior (it is up to you to define exactly how).

Regards, Michal

aljer-priv commented 6 years ago

Thanks for the explanation. I have one more question: where this transAPI modules have to be implemented? On the server or in a device which we want to control?

Regards, Ola

michalvasko commented 6 years ago

Hi Ola, they have to be implemented as a shared library for the server (basics here) and they should communicate somehow with the device to make it change its configuration and behavior.

Regards, Michal

aljer-priv commented 6 years ago

OK, thanks for all answears. They are very helpful for me.

Regards, Ola