libnetconf2 icon indicating copy to clipboard operation
libnetconf2 copied to clipboard

How can a netconf server get a netconf client's private capbility?

Open lumanyu180 opened this issue 5 years ago • 4 comments

Hi,

I  have a server with libnetconf2. And the client does not use libnetconf2. Now the client send its private capbilities in hello packet. I want to get its privite capbilities, how can i get them.  Is there API which can get client's private capbility ?

lumanyu180 avatar Jan 04 '20 09:01 lumanyu180

Hi, no, this is currently not possible. Although not specified anywhere, the capabilities are sent mainly so that client knows what to expect from the server, not the other way around. Client sends its capabilities just so that the NETCONF version can be negotiated. Why then do you need the client capabilities?

Regards, Michal

michalvasko avatar Jan 06 '20 07:01 michalvasko

Hi, Thanks for your reply very much. My application is a netconf server,and there are different netconf clients. And there are some private behaviors between the server and the client which are not supported by RFC. So the server want to distinguish the clients by their capabilities。

lumanyu180 avatar Jan 07 '20 01:01 lumanyu180

Hi, I see. Like I said, I do not think such a feature is supported by NETCONF and libnetconf2 does not even store client capabilities, only server ones. But I guess there is no real issue in doing so and I will add once I am finished with my current work. It should not be too difficult so you can also provide a patch yourself.

Regards, Michal

michalvasko avatar Jan 07 '20 08:01 michalvasko

Hi,

Thanks for your reply very much. I understand what you mean. Like you said. it should not be too difficult,i will try it. And If you will add it , it will be perfect。Wait for your work。Thanks very much.

lumanyu180 avatar Jan 09 '20 03:01 lumanyu180