summaryrefslogtreecommitdiffstats
path: root/lisp/api/src/main
diff options
context:
space:
mode:
authorJan Srnicek <jsrnicek@cisco.com>2017-05-24 08:45:19 +0200
committerJan Srnicek <jsrnicek@cisco.com>2017-05-24 08:45:19 +0200
commit7ca39aa6d228dc552097857afc697ddf52bd3ad3 (patch)
treee1af2f7bd22ffc83a2958168f2b313dd765dda47 /lisp/api/src/main
parentb5d9c75265a5779ed7404b426f3f91a6b1e07e49 (diff)
HC2VPP-147 - Gpe entry implementation
Change-Id: Ie7887c8e8f10678410ad677c425bfed1690bf440 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Diffstat (limited to 'lisp/api/src/main')
-rw-r--r--lisp/api/src/main/yang/gpe-entry-identification-context.yang70
-rw-r--r--lisp/api/src/main/yang/gpe-locator-pair-identification-context.yang70
2 files changed, 140 insertions, 0 deletions
diff --git a/lisp/api/src/main/yang/gpe-entry-identification-context.yang b/lisp/api/src/main/yang/gpe-entry-identification-context.yang
new file mode 100644
index 000000000..8f4d8aceb
--- /dev/null
+++ b/lisp/api/src/main/yang/gpe-entry-identification-context.yang
@@ -0,0 +1,70 @@
+module gpe-entry-identification-context {
+ yang-version 1;
+ namespace "urn:honeycomb:params:xml:ns:yang:gpe:entry:identification:context";
+ prefix "gpe-entry-identification-context";
+
+ description
+ "This module contains mappings between gpe entry identificator and actual unique combination of
+ remote/local eid and vni in vpp";
+
+ revision "2017-05-17" {
+ 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 gpe-entry-identification-context-attributes{
+
+ container gpe-entry-identification-contexts {
+
+ list gpe-entry-identification {
+
+ key "name";
+
+ leaf name {
+ type string;
+ }
+
+ container mappings{
+ list mapping {
+
+ key "id";
+
+ leaf id {
+ type string;
+ description "Id that uniquely identifies gpe entry";
+ }
+
+ container gpe-entry-identificator{
+ // these three attributes allow to identificated gpe entry
+ container local-eid {
+ uses lisp-types:lisp-address;
+ description "Local EID that must be a local address";
+ }
+
+ container remote-eid {
+ uses lisp-types:lisp-address;
+ description "Remote EID";
+ }
+
+ leaf vni {
+ type uint32;
+ mandatory true;
+ description "Virtual Network Identifier";
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+
+ augment /nc:contexts {
+ ext:augment-identifier "gpe-entry-identification-ctx-augmentation";
+ uses gpe-entry-identification-context-attributes;
+ }
+} \ No newline at end of file
diff --git a/lisp/api/src/main/yang/gpe-locator-pair-identification-context.yang b/lisp/api/src/main/yang/gpe-locator-pair-identification-context.yang
new file mode 100644
index 000000000..776dbc927
--- /dev/null
+++ b/lisp/api/src/main/yang/gpe-locator-pair-identification-context.yang
@@ -0,0 +1,70 @@
+module gpe-locator-pair-identification-context {
+ yang-version 1;
+ namespace "urn:honeycomb:params:xml:ns:yang:gpe:locator:pair:identification:context";
+ prefix "gpe-locator-pair-identification-context";
+
+ description
+ "This module contains mappings between gpe entry identificator and locator pair in vpp";
+
+ revision "2017-05-17" {
+ description
+ "Initial revision.";
+ }
+
+ import lisp {prefix "lisp";}
+ import ietf-inet-types {prefix "inet";}
+ import yang-ext {prefix "ext";}
+ import naming-context { prefix "nc";}
+
+ grouping gpe-locator-pair-identification-context-attributes{
+
+ container gpe-locator-pair-identification-contexts {
+
+ list gpe-locator-pair-identification {
+
+ key "name";
+
+ leaf name {
+ type string;
+ }
+
+ container mappings{
+ list mapping {
+
+ key "id";
+
+ leaf id {
+ type string;
+ description "Id that uniquely identifies gpe entry";
+ }
+
+ list locator-pair-mapping {
+ key "id";
+
+ leaf id {
+ type string;
+ description "Id that uniquely identifies locator pair";
+ }
+
+ container pair {
+ leaf local-address{
+ type inet:ip-address;
+ description "Local locator address";
+ }
+ leaf remote-address {
+ type inet:ip-address;
+ description "Remote locator address";
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+
+ augment /nc:contexts {
+ ext:augment-identifier "gpe-locator-pair-identification-ctx-augmentation";
+ uses gpe-locator-pair-identification-context-attributes;
+ }
+} \ No newline at end of file