summaryrefslogtreecommitdiffstats
path: root/lisp/api/src/main/yang
diff options
context:
space:
mode:
authorJan Srnicek <jsrnicek@cisco.com>2016-08-31 07:46:41 +0200
committerMaros Marsalek <mmarsale@cisco.com>2016-08-31 11:10:32 +0000
commitaa3fb2c1271c948f9a3c5a4ab22ce146be13163e (patch)
tree81f358b3dd13f7e3f7c50d315bd6d6a415ce8ac8 /lisp/api/src/main/yang
parentcb9f4515611d3cbd72b73c5a0d6521187c3d488a (diff)
HONEYCOMB-75 - Lisp implemetation
Rebased on final minimal distro Change-Id: Ib71fc59e62dda4633f4f79c5c7417a4aaf02a177 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com> Signed-off-by: Florin Coras <fcoras@cisco.com> Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'lisp/api/src/main/yang')
-rw-r--r--lisp/api/src/main/yang/eid-mapping-context.yang44
1 files changed, 44 insertions, 0 deletions
diff --git a/lisp/api/src/main/yang/eid-mapping-context.yang b/lisp/api/src/main/yang/eid-mapping-context.yang
new file mode 100644
index 000000000..3fb6d893a
--- /dev/null
+++ b/lisp/api/src/main/yang/eid-mapping-context.yang
@@ -0,0 +1,44 @@
+module eid-mapping-context {
+ yang-version 1;
+ namespace "urn:honeycomb:params:xml:ns:yang:eid:mapping:context";
+ prefix "eid-mapping-context";
+
+ description
+ "This module contains mappings stored for local-mappings id to actual eid";
+
+ revision "2016-08-01" {
+ description
+ "Initial revision.";
+ }
+
+ import lisp {prefix "lisp";}
+ import ietf-lisp-address-types {prefix "lisp-types";}
+
+ container contexts {
+ list eid-mapping-context {
+
+ key "name";
+
+ leaf name {
+ type string;
+ }
+
+ container mappings{
+ list mapping {
+
+ key "id";
+
+ leaf id {
+ type lisp:mapping-id;
+ description "Id that uniquely identifies a mapping";
+ }
+
+ container eid {
+ uses lisp-types:lisp-address;
+ description "EID address";
+ }
+ }
+ }
+ }
+ }
+} \ No newline at end of file