Skip to content

Commit

Permalink
Update RPC input output documentation (#435) (#458)
Browse files Browse the repository at this point in the history
* Updates documentation to correctly describe RPC input/output
  • Loading branch information
shgandhi authored and Abhi Keshav committed May 24, 2017
1 parent 8e68d60 commit 49cdeed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ydkgen/printer/doc/doc_printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,13 @@ def _print_class_rst(self, clazz):
self._print_class_hierarchy(clazz)
if clazz.stmt.search_one('presence') is not None:
self._append('This class is a :ref:`presence class<presence-class>`\n')
if clazz.stmt.arg != 'rpc':
if clazz.stmt.keyword != 'rpc':
if is_config_stmt(clazz.stmt):
self._append('This class represents configuration data.\n')
else:
self._append('This class represents state data.\n')
else:
self._append('This class defines parameters to the RPC operation\n')
self._print_docstring(clazz, get_class_docstring(
clazz, self.lang, identity_subclasses=self.identity_subclasses))
self.ctx.lvl_dec()
Expand Down

0 comments on commit 49cdeed

Please sign in to comment.