summaryrefslogtreecommitdiffstats
path: root/samples/samples-api/src/main/yang
diff options
context:
space:
mode:
authorJan Srnicek <jsrnicek@cisco.com>2017-01-26 13:03:21 +0100
committerJan Srnicek <jsrnicek@cisco.com>2017-02-23 06:19:17 +0000
commit4c4bb0911d3556c834fd384aa1ef7c4d4ce69a33 (patch)
tree32814af89a96c030aab04c50f446c809547459cb /samples/samples-api/src/main/yang
parent7cfeff1c19a3dc670e1352ca15d1f8d6d568cae4 (diff)
HONEYCOMB-269 - Release notes update
- Update features list, postman collections,models,etc ... - Provides samples sources mentioned in devel_plugin_vpp_tutorial -Broken links fixed Change-Id: I549fcec7c4e7e669cba44cafd12d824e63473533 Signed-off-by: Marek Gradzki <mgradzki@cisco.com> Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Diffstat (limited to 'samples/samples-api/src/main/yang')
-rw-r--r--samples/samples-api/src/main/yang/sample-plugin.yang42
1 files changed, 42 insertions, 0 deletions
diff --git a/samples/samples-api/src/main/yang/sample-plugin.yang b/samples/samples-api/src/main/yang/sample-plugin.yang
new file mode 100644
index 000000000..099ab65b8
--- /dev/null
+++ b/samples/samples-api/src/main/yang/sample-plugin.yang
@@ -0,0 +1,42 @@
+module sample-plugin {
+
+ yang-version 1;
+ namespace "urn:opendaylight:params:xml:ns:yang:sample:plugin";
+ prefix "samples";
+
+ revision 2016-12-14 {
+ description "Sample model for demonstration of transation code";
+ }
+
+ import ietf-inet-types {
+ prefix "inet";
+ }
+
+ grouping sample-plugin-params {
+ container vxlans {
+ list vxlan-tunnel {
+
+ key id;
+ leaf id {
+ type string;
+ }
+
+ leaf src {
+ type inet:ip-address;
+ }
+ leaf dst {
+ type inet:ip-address;
+ }
+ }
+ }
+ }
+
+ container sample-plugin-state {
+ config false;
+ uses sample-plugin-params;
+ }
+
+ container sample-plugin {
+ uses sample-plugin-params;
+ }
+} \ No newline at end of file