Closed fxie00 closed 4 years ago
Hi!
Thanks for the question.
Today, we don't support YANG notification
, action
, or rpc
statements for code generation. I'm happy to review changes that implement this -- but would also encourage some discussion as to how best to create useful protobuf/Go/$otherLanguage constructs for these types before we dive into implementations.
Cheers, r.
Thanks a lot for the quick response! This issue can be closed.
Feng
Problem statement
Does protogenerator.go in ygot support RPC/action/notification in YANG?
I have a sample yang file as follows:
/ examples.yang / module examples { namespace "urn:examples"; prefix e;
rpc oper { input { leaf arg { type string; } }
}
I used protogenerator.go to compile this file. It was found that:
when "notification notif {...}" is included, a compile error is seen "[protogenerator.go:130] unknown type of entry Directory in findMappableEntities for /examples"
when "notification notif {...}" is removed, the error is gone. However, there is no protobuf code is generated for "rpc oper{...}".