From cdf7de8770a07ddcd9e170823ca335c9d1b90ddf Mon Sep 17 00:00:00 2001 From: Jan Srnicek Date: Tue, 13 Jun 2017 06:55:15 +0200 Subject: HC2VPP-168 - Native forward path api Change-Id: I0a5f5ccb86f6cf22b056d5336d2e8fdd4a3081d5 Signed-off-by: Jan Srnicek --- lisp/api/src/main/yang/gpe.yang | 51 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) 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 -- cgit 1.2.3-korg