to define an extension for it so that the YANG statement parser can
recognize it.
-.. code:: yang
+.. code::
module semantic-version {
namespace "urn:opendaylight:yang:extension:semantic-version";
the bar module based on its semantic version. Notice how both modules
import the module with the semantic-version extension.
-.. code:: yang
+.. code::
module foo {
namespace foo;
...
}
-.. code:: yang
+.. code::
module bar {
namespace bar;
.. code:: java
- \\ example 1
+ // example 1
ContainerNode containerNode == Builders.containerBuilder().withNodeIdentifier(new YangInstanceIdentifier.NodeIdentifier(QName.create(moduleQName, "example-container")).build();
- \\ example 2
+ // example 2
ContainerNode containerNode2 == Builders.containerBuilder(containerSchemaNode).build();
Both examples produce the same result. NodeIdentifier is one of the four
Let us show a more complex example of creating a NormalizedNode. First,
consider the following YANG module:
-.. code:: yang
+.. code::
module example-module {
namespace "opendaylight.org/example-module";
Diagnostics
~~~~~~~~~~~
-