Skip to content

Commit 2dd8210

Browse files
committed
schema mount UPDATE simplify parsing data in ext callback
Also include an example.
1 parent 0690d8e commit 2dd8210

10 files changed

Lines changed: 3143 additions & 0 deletions

examples/schema_mount/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
all: schema_mount_example
2+
3+
schema_mount_example: schema_mount_example.c
4+
gcc -Wall -g -o $@ $^ -lyang
5+
6+
clean:
7+
rm -f schema_mount_example
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<network-instances xmlns="urn:ietf:params:xml:ns:yang:ietf-network-instance">
2+
<network-instance>
3+
<name>inst0</name>
4+
<vrf-root>
5+
<routing xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
6+
<control-plane-protocols>
7+
<control-plane-protocol>
8+
<type>direct</type>
9+
<name>prot0</name>
10+
</control-plane-protocol>
11+
</control-plane-protocols>
12+
</routing>
13+
</vrf-root>
14+
</network-instance>
15+
</network-instances>

0 commit comments

Comments
 (0)