-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In _merge_gnode_nodes, don't continue when the child1 node has no children. This is to allow the recursive call which, while it will have no effect in the loop over node1's children, may have an effect in the loop over node2's children. Change schemas to allow the new tests in apteryx-netconf. The test5 schema is meant to mimic the structure of the interfaces/ethernet/poe models in openconfig.
- Loading branch information
1 parent
7a7f845
commit 9b53371
Showing
3 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<MODULE xmlns="http://test.com/ns/yang/testing-5" | ||
xmlns:t5="http://test.com/ns/yang/testing-5" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="https://github.com/alliedtelesis/apteryx-xml https://github.com/alliedtelesis/apteryx-xml/releases/download/v1.2/apteryx.xsd" | ||
model="testing-5" organization="Test 5 Ltd" version="2024-11-27"> | ||
<NODE name="test5" help="This is a test node"> | ||
<NODE name="objects" help="A generic object"> | ||
<NODE name="object" mode="rw" help="One object in a list"> | ||
<NODE name="*" help="The object's key - the name variable below"> | ||
<NODE name="name" mode="rw" help="This is the name of the object"/> | ||
<NODE name="top-container" mode="rw" help="The top container in the object"> | ||
<NODE name="conf" mode="rw" help="The config for the top container"> | ||
<NODE name="enabled" mode="rw" help="Whether the top container is enabled" default="true"> | ||
<VALUE name="true" value="1"/> | ||
<VALUE name="false" value="2"/> | ||
</NODE> | ||
</NODE> | ||
<NODE name="inner-container" mode="rw" help="The inner container in the object"> | ||
<NODE name="conf" mode="rw" help="The config for the top container"> | ||
<NODE name="enabled" mode="rw" help="Whether the top container is enabled" default="false"> | ||
<VALUE name="true" value="1"/> | ||
<VALUE name="false" value="2"/> | ||
</NODE> | ||
</NODE> | ||
</NODE> | ||
</NODE> | ||
</NODE> | ||
</NODE> | ||
</NODE> | ||
</NODE> | ||
</MODULE> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters