summaryrefslogtreecommitdiffstats
path: root/samples/samples-api
diff options
context:
space:
mode:
Diffstat (limited to 'samples/samples-api')
-rw-r--r--samples/samples-api/asciidoc/Readme.adoc3
-rw-r--r--samples/samples-api/pom.xml23
-rw-r--r--samples/samples-api/src/main/yang/sample-plugin.yang42
3 files changed, 68 insertions, 0 deletions
diff --git a/samples/samples-api/asciidoc/Readme.adoc b/samples/samples-api/asciidoc/Readme.adoc
new file mode 100644
index 000000000..7bc14dc6f
--- /dev/null
+++ b/samples/samples-api/asciidoc/Readme.adoc
@@ -0,0 +1,3 @@
+= samples-api
+
+Overview of samples-api \ No newline at end of file
diff --git a/samples/samples-api/pom.xml b/samples/samples-api/pom.xml
new file mode 100644
index 000000000..a6fa1f63b
--- /dev/null
+++ b/samples/samples-api/pom.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <parent>
+ <groupId>io.fd.honeycomb.common</groupId>
+ <artifactId>api-parent</artifactId>
+ <version>1.17.04-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>io.fd.hc2vpp.common</groupId>
+ <artifactId>samples-api</artifactId>
+ <version>1.17.01-SNAPSHOT</version>
+ <packaging>bundle</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.mdsal.model</groupId>
+ <artifactId>ietf-inet-types-2013-07-15</artifactId>
+ </dependency>
+ </dependencies>
+</project> \ No newline at end of file
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