diff options
author | Maros Marsalek <mmarsale@cisco.com> | 2016-04-12 10:13:31 +0200 |
---|---|---|
committer | Maros Marsalek <mmarsale@cisco.com> | 2016-04-12 10:13:31 +0200 |
commit | 5ba8a8f44117579c9fa6dfdc038c8e41d2213d52 (patch) | |
tree | b57707ccda530b06914d95f3457be591e17384c2 /v3po/translate-api | |
parent | 4c59ba41ef8c5bfbf5d407c06700857389db973e (diff) |
HONEYCOMB-9: Add configuration and wiring for readers and writers
Remove config module
Wrap vpp-japi in a config module
Change-Id: Iee1e0c653309bd3c1019323ce689dacf3ed995cd
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'v3po/translate-api')
-rw-r--r-- | v3po/translate-api/pom.xml | 2 | ||||
-rw-r--r-- | v3po/translate-api/src/main/yang/translate-api.yang | 37 |
2 files changed, 38 insertions, 1 deletions
diff --git a/v3po/translate-api/pom.xml b/v3po/translate-api/pom.xml index 42501e752..4323e7f37 100644 --- a/v3po/translate-api/pom.xml +++ b/v3po/translate-api/pom.xml @@ -17,7 +17,7 @@ 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> + <artifactId>impl-parent</artifactId> <version>1.0.0-SNAPSHOT</version> <relativePath>../../common/api-parent</relativePath> </parent> diff --git a/v3po/translate-api/src/main/yang/translate-api.yang b/v3po/translate-api/src/main/yang/translate-api.yang new file mode 100644 index 000000000..28d969378 --- /dev/null +++ b/v3po/translate-api/src/main/yang/translate-api.yang @@ -0,0 +1,37 @@ +module translate-api { + yang-version 1; + namespace "urn:honeycomb:params:xml:ns:yang:translate:api"; + prefix "tapi"; + + import config { prefix config; revision-date 2013-04-05; } + + description + "This module contains the base YANG definitions for + readers/writers plugged into a honeycomb"; + + revision "2016-04-06" { + description + "Initial revision."; + } + + identity honeycomb-reader { + base "config:service-type"; + config:java-class io.fd.honeycomb.v3po.translate.read.Reader; + } + + identity honeycomb-reader-registry { + base "config:service-type"; + config:java-class io.fd.honeycomb.v3po.translate.read.ReaderRegistry; + } + + identity honeycomb-writer { + base "config:service-type"; + config:java-class io.fd.honeycomb.v3po.translate.write.Writer; + } + + identity honeycomb-writer-registry { + base "config:service-type"; + config:java-class io.fd.honeycomb.v3po.translate.write.WriterRegistry; + } + +}
\ No newline at end of file |