summaryrefslogtreecommitdiffstats
path: root/vpp-common/naming-context-api/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'vpp-common/naming-context-api/src/main')
-rw-r--r--vpp-common/naming-context-api/src/main/yang/naming-context.yang42
1 files changed, 42 insertions, 0 deletions
diff --git a/vpp-common/naming-context-api/src/main/yang/naming-context.yang b/vpp-common/naming-context-api/src/main/yang/naming-context.yang
new file mode 100644
index 000000000..fa44bdd12
--- /dev/null
+++ b/vpp-common/naming-context-api/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 "nc";
+
+ 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";
+ unique "index";
+
+ leaf name {
+ type string;
+ }
+
+ leaf index {
+ type int32;
+ }
+ }
+ }
+ }
+ }
+
+} \ No newline at end of file