Skip to content

Commit

Permalink
schema: add store_only parameter to parse_data_dict
Browse files Browse the repository at this point in the history
Sometimes it is necessary to store only the data.

Signed-off-by: Jeremie Leska <[email protected]>
Acked-by: Samuel Gauthier <[email protected]>
  • Loading branch information
jeremie6wind committed Nov 15, 2024
1 parent 74e08c4 commit 3ff6074
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libyang/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ def parse_data_dict(
rpc: bool = False,
rpcreply: bool = False,
notification: bool = False,
store_only: bool = False,
) -> "libyang.data.DNode":
"""
Convert a python dictionary to a DNode object following the schema of this
Expand Down Expand Up @@ -276,6 +277,7 @@ def parse_data_dict(
rpc=rpc,
rpcreply=rpcreply,
notification=notification,
store_only=store_only,
)


Expand Down

0 comments on commit 3ff6074

Please sign in to comment.