summaryrefslogtreecommitdiffstats
path: root/samples/samples-api/src/main/yang/sample-plugin@2016-12-14.yang
diff options
context:
space:
mode:
Diffstat (limited to 'samples/samples-api/src/main/yang/sample-plugin@2016-12-14.yang')
-rw-r--r--samples/samples-api/src/main/yang/sample-plugin@2016-12-14.yang42
1 files changed, 42 insertions, 0 deletions
diff --git a/samples/samples-api/src/main/yang/sample-plugin@2016-12-14.yang b/samples/samples-api/src/main/yang/sample-plugin@2016-12-14.yang
new file mode 100644
index 000000000..099ab65b8
--- /dev/null
+++ b/samples/samples-api/src/main/yang/sample-plugin@2016-12-14.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