Skip to content

Commit

Permalink
Update function calls after libyang PLY APIs updates
Browse files Browse the repository at this point in the history
  • Loading branch information
li-pingmao authored and Praveen Chaudhary committed May 1, 2020
1 parent 7ad4347 commit 2f315ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sonic-yang-mgmt/_sonic_yang_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ def delete_node(self, xpath):
leaf = ly.Schema_Node_Leaf(snode)
if leaf.is_key():
# try to delete parent
nodeP = self.find_parent_node(xpath)
nodeP = self.find_parent_data_node(xpath)
xpathP = nodeP.path()
if self._delete_node(xpath=xpathP, node=nodeP) == False:
raise('_delete_node failed')
Expand Down
2 changes: 1 addition & 1 deletion src/sonic-yang-mgmt/sonic_yang.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def find_data_dependencies (self, data_xpath):
return ref_list

try:
value = str(self.find_node_value(data_xpath))
value = str(self.find_data_node_value(data_xpath))

schema_node = ly.Schema_Node_Leaf(data_node.schema())
backlinks = schema_node.backlinks()
Expand Down

0 comments on commit 2f315ee

Please sign in to comment.