Skip to content
Snippets Groups Projects
Commit 4ab56f66 authored by Ladislav Lhotka's avatar Ladislav Lhotka
Browse files

Add documentation example ex2.

parent 26f3ecd4
No related branches found
No related tags found
No related merge requests found
module example-2 {
yang-version "1.1";
namespace "http://example.com/example-2";
prefix "ex2";
container top {
leaf-list foo {
type uint8;
}
leaf bar {
type boolean;
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<module name="example-2"
xmlns="urn:ietf:params:xml:ns:yang:yin:1"
xmlns:ex2="http://example.com/example-2">
<yang-version value="1.1"/>
<namespace uri="http://example.com/example-2"/>
<prefix value="ex2"/>
<container name="top">
<leaf-list name="foo">
<type name="uint8"/>
</leaf-list>
<leaf name="bar">
<type name="boolean"/>
</leaf>
</container>
</module>
{
"example-2:top": {
"foo": [
1,
2
],
"bar": true
}
}
<?xml version="1.0" encoding="UTF-8"?>
<data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<top xmlns="http://example.com/example-2">
<foo>1</foo>
<foo>2</foo>
<bar>true</bar>
</top>
</data>
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<capabilities>
<capability>urn:ietf:params:netconf:base:1.1</capability>
<capability>http://example.com/example-2?module=example-2&amp;features=</capability>
</capabilities>
</hello>
{
"ietf-yang-library:modules-state": {
"module-set-id": "XXXX",
"module": [
{
"name": "example-2",
"namespace": "http://example.com/example-2",
"revision": "",
"conformance-type": "implement"
}
]
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment