summaryrefslogtreecommitdiffstats
path: root/lisp/api
diff options
context:
space:
mode:
authorJan Srnicek <jsrnicek@cisco.com>2016-11-09 08:55:04 +0100
committerJan Srnicek <jsrnicek@cisco.com>2016-11-09 08:55:04 +0100
commitc2fa4de9535239bec172357dcc8c0ddc576212e6 (patch)
treebf5ca1659cb8288d302e2f6462bbc05270dead9f /lisp/api
parent489c9d5ef82eef5b12f4bd0efb483318138a4ee5 (diff)
HONEYCOMB-254 - Adjacencies dump support
Added mapping context between adjacency id(HC side) and combination of remote and local eids(vpp side) Change-Id: Icbba9130a82b7af51b23e6d6d68fcfbf49e66c99 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Diffstat (limited to 'lisp/api')
-rwxr-xr-xlisp/api/pom.xml6
-rw-r--r--lisp/api/src/main/yang/adjacencies-identification-context.yang65
2 files changed, 71 insertions, 0 deletions
diff --git a/lisp/api/pom.xml b/lisp/api/pom.xml
index 5b925137f..b16aaea59 100755
--- a/lisp/api/pom.xml
+++ b/lisp/api/pom.xml
@@ -31,6 +31,7 @@
<properties>
<project.translate.groupId>io.fd.honeycomb</project.translate.groupId>
+ <naming.context.version>1.16.12-SNAPSHOT</naming.context.version>
</properties>
<dependencies>
@@ -46,5 +47,10 @@
<groupId>org.opendaylight.mdsal.model</groupId>
<artifactId>yang-ext</artifactId>
</dependency>
+ <dependency>
+ <groupId>io.fd.honeycomb.vpp</groupId>
+ <artifactId>naming-context-api</artifactId>
+ <version>${naming.context.version}</version>
+ </dependency>
</dependencies>
</project> \ No newline at end of file
diff --git a/lisp/api/src/main/yang/adjacencies-identification-context.yang b/lisp/api/src/main/yang/adjacencies-identification-context.yang
new file mode 100644
index 000000000..ae05f83f5
--- /dev/null
+++ b/lisp/api/src/main/yang/adjacencies-identification-context.yang
@@ -0,0 +1,65 @@
+module adjacencies-identification-context {
+ yang-version 1;
+ namespace "urn:honeycomb:params:xml:ns:yang:adjacencies:identification:context";
+ prefix "adjacencies-identification-context";
+
+ description
+ "This module contains mappings between adjacency identificator and actual unique combination of
+ remote and local eid in vpp";
+
+ revision "2016-08-01" {
+ description
+ "Initial revision.";
+ }
+
+ import lisp {prefix "lisp";}
+ import ietf-lisp-address-types {prefix "lisp-types";}
+ import yang-ext {prefix "ext";}
+ import naming-context { prefix "nc";}
+
+ grouping adjacencies-identification-context-attributes{
+
+ container adjacencies-identification-contexts {
+
+ list adjacencies-identification {
+
+ key "name";
+
+ leaf name {
+ type string;
+ }
+
+ container mappings{
+ list mapping {
+
+ key "id";
+
+ leaf id {
+ type string;
+ description "Id that uniquely identifies adjacency";
+ }
+
+ container eid-identificator-pair{
+ leaf local-eid-id {
+ type lisp:mapping-id;
+ description "Local EID identifier";
+ mandatory true;
+ }
+
+ leaf remote-eid-id {
+ type lisp:mapping-id;
+ description "Remote EID identifier";
+ mandatory true;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+
+ augment /nc:contexts {
+ ext:augment-identifier "adjacencies-identification-ctx-augmentation";
+ uses adjacencies-identification-context-attributes;
+ }
+} \ No newline at end of file