Table of Contents |
---|
...
- An XML-based equivalent version of YANG is called YIN
- YANG uses a tree to define the hierarchy of data wherein each ‘node’ has a value or/and a set of child nodes
- 4 types of nodes
- leaf container nodescontainer
- list nodes
- leaf nodes
- leaf-list nodeslist nodes
- 4 types of nodes
Sample YANG (store.yang) | Statements and Description | |||||||
---|---|---|---|---|---|---|---|---|
| module Statement
| |||||||
Figure 1.1 Schema tree of module 'stores'
...
- Contains interface which has methods to access data of a YANG extension statement
package org.opendaylight.yangtools.yang.model.api;
import org.opendaylight.yangtools.yang.model.api.stmt.ExtensionEffectiveStatement;
public interface ExtensionDefinition extends SchemaNode, EffectiveStatementEquivalent<ExtensionEffectiveStatement> {
String getArgument();
boolean isYinElement();
}- Implementing Class
- Class
- Implementing Class