Hi all, When defining an 'action' in a YANG 1.1 model, and we want the server to be able to respond with <ok> or some error information, do we need to define the ok/error info in the 'output' of the action, or can we define an action without any 'output' statement and have the server respond using the typical <ok> or <rpc-error> in NETCONF ?
I'm not sure if it is relevant, but when I look at the definition of the commit rpc in the NETCONF spec, there is no 'output' defined but clearly a response of <ok> or an rpc-error can be returned by a server. If we don't define the ok/error in the action itself then I suppose other types of interfaces (RESTCONF) may or may not have other ways to reply ok/error (at least it won't be defined by the YANG model for the particular action). But it does seem like a waste to go and specify ok/error information for every action out there if they only need to return ok or error information that could be carried in the standard rpc-error message. Rgds, Jason
_______________________________________________ netmod mailing list [email protected] https://www.ietf.org/mailman/listinfo/netmod
