Hi,
Dne 9.1.2015 v 14:07
hellosa...@gmail.com napsal(a):
> Hi Radek,
> So basically what I understood is (please correct me if I am wrong) if I use netconf protocol then it is not possible to send the request in YANG format.
it is correct.
> Suppose if I removed the netconf protocol and just implement client and servers that are talking to each other over TCP socket, then is it possible to send the request in YANG format and vise-versa?
But the YANG is _data modeling_ language. How do you want to format a request? I'm not sure that I (and also that you :)) understand (have an idea) how such a request in a YANG format would look like, can you provide me an example of such a request?
> Just to give you more insight of the project, Basically we have our own configuration management system and what we want to implement is a server such that it listen the request from client in YANG format and parse & process the received request over our own configuration management system and return the response to the client in YANG format.
> Request send by client can be one of the followings:
> a. login
> b. retrieve configuration
> c. edit configuration
> d. add configuration
> e. delete configuration
> f. logout
>
> Is it feasible (or possible) to achieve above functionality using the YANG data modeling language?
No, if you want to write down the configuration data in YANG format. Because the YANG language is simply not usable for this. You can use YANG to describe how the configuration data should look like, but you cannot write a set of configuration data in YANG format. There is no way how to specify the value of some parameter in YANG format. Please read the RFC 6020.
You can send data (described by a YANG data model) in XML format and then it is what the NETCONF does. Or you can send the data in JSON format and then it is what the RESTconf does (with a different envelope around the data).
Regards,
Radek