diff options
author | Maros Marsalek <mmarsale@cisco.com> | 2016-05-16 10:43:29 +0200 |
---|---|---|
committer | Maros Marsalek <mmarsale@cisco.com> | 2016-05-23 09:23:58 +0000 |
commit | 9e59a344c5a5b81fb7b7292184e849ad0fc9507c (patch) | |
tree | 8cb2394ef4e80389ec3d6cecc68a0eafc93bf841 /v3po/vpp-translate-utils/src/main/yang/naming-context.yang | |
parent | 5f10c13fc3bff497f6556f0538b08060e4f28105 (diff) |
HONEYCOMB-61: Add context data tree
For storing mapping related context necessary for the plugins
Add naming context adapter to store naming contexts in the data tree
+ Enable persistence for context data tree
Change-Id: I2ac531e80e71a48d313b065997d134da2ae7ee12
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'v3po/vpp-translate-utils/src/main/yang/naming-context.yang')
-rw-r--r-- | v3po/vpp-translate-utils/src/main/yang/naming-context.yang | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/v3po/vpp-translate-utils/src/main/yang/naming-context.yang b/v3po/vpp-translate-utils/src/main/yang/naming-context.yang new file mode 100644 index 000000000..0bcfc099b --- /dev/null +++ b/v3po/vpp-translate-utils/src/main/yang/naming-context.yang @@ -0,0 +1,42 @@ +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 |