diff options
Diffstat (limited to 'tools/archetype/src/main/resources/archetype-resources/__rootArtifactId__-api/src/main/yang/__rootArtifactId__.yang')
-rw-r--r-- | tools/archetype/src/main/resources/archetype-resources/__rootArtifactId__-api/src/main/yang/__rootArtifactId__.yang | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/tools/archetype/src/main/resources/archetype-resources/__rootArtifactId__-api/src/main/yang/__rootArtifactId__.yang b/tools/archetype/src/main/resources/archetype-resources/__rootArtifactId__-api/src/main/yang/__rootArtifactId__.yang new file mode 100644 index 000000000..d5852ebeb --- /dev/null +++ b/tools/archetype/src/main/resources/archetype-resources/__rootArtifactId__-api/src/main/yang/__rootArtifactId__.yang @@ -0,0 +1,49 @@ +module ${rootArtifactId} { + + yang-version 1; + namespace "urn:opendaylight:params:xml:ns:yang:${rootArtifactId}"; + prefix "${rootArtifactId}"; + + description + "This YANG module defines the generic configuration and + operational data for ${rootArtifactId} in VPP"; + + revision "2016-09-18" { + description "Initial revision of ${rootArtifactId} model"; + } + + container ${rootArtifactId} { + uses ${rootArtifactId}-params; + description "Configuration data of ${rootArtifactId} in Honeycomb"; + + // READ + // curl -u admin:admin http://localhost:8181/restconf/config/${rootArtifactId}:${rootArtifactId} + + // WRITE + // curl http://localhost:8181/restconf/operational/${rootArtifactId}:${rootArtifactId} + + } + + container ${rootArtifactId}-state { + config false; + uses ${rootArtifactId}-params; + description "Operational data of ${rootArtifactId} persisted in VPP"; + + // READ + // curl -u admin:admin http://localhost:8181/restconf/operational/${rootArtifactId}:${rootArtifactId}-state + } + + grouping ${rootArtifactId}-params { + list element { + + key id; + leaf id { + type uint32; + } + + leaf description { + type string; + } + } + } +}
\ No newline at end of file |