From 8dd9b6b1daf1b84888c23a828f250ad1be098016 Mon Sep 17 00:00:00 2001 From: Maros Marsalek Date: Wed, 18 May 2016 08:49:56 +0200 Subject: HONEYCOMB-61: Move vpp context model to v3po-api Change-Id: I92d9cdd199e245adf5d22ff9756e05d82d66abc4 Signed-off-by: Maros Marsalek --- v3po/api/src/main/yang/naming-context.yang | 41 +++++++++++++++++++++ v3po/vpp-translate-utils/pom.xml | 5 +++ .../src/main/yang/naming-context.yang | 42 ---------------------- 3 files changed, 46 insertions(+), 42 deletions(-) create mode 100644 v3po/api/src/main/yang/naming-context.yang delete mode 100644 v3po/vpp-translate-utils/src/main/yang/naming-context.yang diff --git a/v3po/api/src/main/yang/naming-context.yang b/v3po/api/src/main/yang/naming-context.yang new file mode 100644 index 000000000..aa4ced29d --- /dev/null +++ b/v3po/api/src/main/yang/naming-context.yang @@ -0,0 +1,41 @@ +module naming-context { + yang-version 1; + namespace "urn:honeycomb:params:xml:ns:yang:naming:context"; + prefix "vpp-u"; + + description + "This module contains data definition for naming mapping context"; + + revision "2016-05-13" { + description + "Initial revision."; + } + + container contexts { + + list naming-context { + + key "name"; + + leaf name { + type string; + } + + container mappings { + list mapping { + + key "name"; + + leaf name { + type string; + } + + leaf index { + type int32; + } + } + } + } + } + +} \ No newline at end of file diff --git a/v3po/vpp-translate-utils/pom.xml b/v3po/vpp-translate-utils/pom.xml index ee931c56e..cc87e1647 100644 --- a/v3po/vpp-translate-utils/pom.xml +++ b/v3po/vpp-translate-utils/pom.xml @@ -34,6 +34,11 @@ translate-utils ${project.version} + + ${project.groupId} + v3po-api + ${project.version} + io.fd.vpp jvpp diff --git a/v3po/vpp-translate-utils/src/main/yang/naming-context.yang b/v3po/vpp-translate-utils/src/main/yang/naming-context.yang deleted file mode 100644 index 0bcfc099b..000000000 --- a/v3po/vpp-translate-utils/src/main/yang/naming-context.yang +++ /dev/null @@ -1,42 +0,0 @@ -module naming-context { - yang-version 1; - namespace "urn:honeycomb:params:xml:ns:yang:naming:context"; - prefix "vpp-u"; - - description - "This module contains data definition for naming mapping context"; - - revision "2016-05-13" { - description - "Initial revision."; - } - - // TODO This should become part of v3po-api as operational-only data - container contexts { - - list naming-context { - - key "name"; - - leaf name { - type string; - } - - container mappings { - list mapping { - - key "name"; - - leaf name { - type string; - } - - leaf index { - type int32; - } - } - } - } - } - -} \ No newline at end of file -- cgit 1.2.3-korg