HC2VPP-168 - Native forward path api 12/7112/2
authorJan Srnicek <[email protected]>
Tue, 13 Jun 2017 04:55:15 +0000 (06:55 +0200)
committerJan Srnicek <[email protected]>
Tue, 13 Jun 2017 04:55:15 +0000 (06:55 +0200)
Change-Id: I0a5f5ccb86f6cf22b056d5336d2e8fdd4a3081d5
Signed-off-by: Jan Srnicek <[email protected]>
lisp/api/src/main/yang/gpe.yang

index 5e8e1f2..c99d5f2 100644 (file)
@@ -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