From 34f77c9cfc6ebfa265866b654990ae9ca55cc451 Mon Sep 17 00:00:00 2001 From: Jan Srnicek Date: Wed, 31 Aug 2016 07:46:41 +0200 Subject: HONEYCOMB-75 - Lisp implemetation Rebased on final minimal distro Change-Id: Ib71fc59e62dda4633f4f79c5c7417a4aaf02a177 Signed-off-by: Jan Srnicek Signed-off-by: Florin Coras Signed-off-by: Maros Marsalek --- lisp/api/pom.xml | 4 +-- lisp/api/src/main/yang/eid-mapping-context.yang | 44 +++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 2 deletions(-) mode change 100644 => 100755 lisp/api/pom.xml create mode 100644 lisp/api/src/main/yang/eid-mapping-context.yang (limited to 'lisp/api') diff --git a/lisp/api/pom.xml b/lisp/api/pom.xml old mode 100644 new mode 100755 index 22cdea6a7..6d501a5c6 --- a/lisp/api/pom.xml +++ b/lisp/api/pom.xml @@ -17,9 +17,9 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> io.fd.honeycomb.common - impl-parent + api-parent 1.0.0-SNAPSHOT - ../../common/impl-parent + ../../common/api-parent 4.0.0 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 -- cgit 1.2.3-korg