summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Srnicek <jsrnicek@cisco.com>2017-06-13 06:55:15 +0200
committerJan Srnicek <jsrnicek@cisco.com>2017-06-13 06:55:15 +0200
commitcdf7de8770a07ddcd9e170823ca335c9d1b90ddf (patch)
treea43f56a9b4cb1582dbb47f3958c982c91192713b
parentbec77ccf91734e22fdb01271e199952b2a5c0f49 (diff)
HC2VPP-168 - Native forward path api
Change-Id: I0a5f5ccb86f6cf22b056d5336d2e8fdd4a3081d5 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
-rw-r--r--lisp/api/src/main/yang/gpe.yang51
1 files changed, 51 insertions, 0 deletions
diff --git a/lisp/api/src/main/yang/gpe.yang b/lisp/api/src/main/yang/gpe.yang
index 5e8e1f2b1..c99d5f26a 100644
--- a/lisp/api/src/main/yang/gpe.yang
+++ b/lisp/api/src/main/yang/gpe.yang
@@ -7,6 +7,10 @@ module gpe {
prefix "lisp";
}
+ import ietf-interfaces {
+ prefix "if";
+ }
+
import ietf-inet-types {
prefix "inet";
}
@@ -108,4 +112,51 @@ module gpe {
uses gpe-feature-data-grouping;
description "GPE state";
}
+
+ container native-forward-paths-tables {
+ // gpe_add_del_native_fwd_rpath
+ list native-forward-paths-table{
+ key table-id;
+
+ leaf table-id {
+ type uint32;
+ }
+
+ list native-forward-path {
+ key next-hop-address;
+
+ leaf next-hop-address {
+ type inet:ip-address;
+ }
+
+ leaf next-hop-interface {
+ type if:interface-ref;
+ }
+ }
+ }
+ }
+
+ container native-forward-paths-tables-state {
+ // gpe_native_fwd_rpaths_get
+ config false;
+ list native-forward-paths-table{
+ key table-id;
+
+ leaf table-id {
+ type uint32;
+ }
+
+ list native-forward-path {
+ key next-hop-address;
+
+ leaf next-hop-address {
+ type inet:ip-address;
+ }
+
+ leaf next-hop-interface {
+ type if:interface-state-ref;
+ }
+ }
+ }
+ }
} \ No newline at end of file