CESNET / libnetconf

C NETCONF library
Other
113 stars 83 forks source link

how to change the server port #279

Open ob1ank opened 5 years ago

ob1ank commented 5 years ago

I want to run the netconf server on non-830 port. What should I do? Thanks

michalvasko commented 5 years ago

Hi, I do not think libnetconf listens on any port, this is a question for netopeer-server. Anyway, all you should need to do is to change ietf-netconf-server configuration and netopeer-server should configure itself accordingly. You can maybe use netopeer-configurator for this, I do not remember, it's been too long. And since we have ended our support for these projects, that is all the information I can give you.

Regards, Michal

ob1ank commented 5 years ago

@michalvasko Thank you for your reply. I want to implement a fake netconf server. It can accept protocol operations from the netconf client and respond as I intended. In other words, there is no actual netconf device or datastore below it. Can I use libnetconf to implement this case?

Regards, Rick

michalvasko commented 5 years ago

Hi Rick, yes, just do not generate transapi module when using lnctool and you can install it into netopeer-server. I would still advise using it since it supports your use-case.

Regards, Michal