Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to load ietf-routing on Netconfd #38

Open
vggonzalez opened this issue Apr 3, 2019 · 3 comments
Open

How to load ietf-routing on Netconfd #38

vggonzalez opened this issue Apr 3, 2019 · 3 comments

Comments

@vggonzalez
Copy link

Hi everyone,

After reading the whole documentation it's unclear to me how I can load one module (ietf-routing in this case) into the netconfd server.

I know the command is "$netconfd --module=", my question is: The desired module is a path to the .yanf file that I have to create, right?

Also, one more question: after connecting to this netconfd server through a SDN Controller (ONOS in my case) and editting the configuration stablished by ietf-routing (next hop, for example)... Would that change affect the real device's configuration or is it just a test server with no real influence on the device's configuration?

Regards

@hungta
Copy link
Member

hungta commented Apr 12, 2019

  1. Yes, --module=... which includes full path or the yang file will be searched in env $YUMA_MODPATH
  2. "Editing configuration stablished by ietf-routing (next hop, for example)..." do you mean the yang file?

@vggonzalez
Copy link
Author

Yes. YANG defines a data model for the device which I can edit through a NETCONF session.
However, unless I write a .c module that connects the .yang file with the device's real configuration, any change on the device wouldn't affect it's real behaviour as it would be just a NETCONF test session.
I will have to write this .c module and then compile it into a .so, however I'm looking at your module ietf-interfaces.c and it's unclear to me how I can translate that into ietf-routing.c

@hungta
Copy link
Member

hungta commented Apr 23, 2019

To gain your purpose, you should try our product called "SAFplus-Mgt" which generates your .yang file to C++ source code and you just simply build and run it.
SAFplus-Mgt also contains tools for simply interacting with netconf server (OpenYuma).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants