From 7981b901c43848d3b923ec49515b28a75ab984e3 Mon Sep 17 00:00:00 2001 From: Masoud Hemmatpour Date: Tue, 26 Nov 2019 12:05:02 +0100 Subject: [HICN-403] update vapi communication with vpp Signed-off-by: Masoud Hemmatpour Change-Id: I6e05d96af049229a6dc2da0adf32707873cdc816 Signed-off-by: Alberto Compagno --- ctrl/sysrepo-plugins/yang/hicn/hicn.yang | 85 ++++++++++---------------------- 1 file changed, 26 insertions(+), 59 deletions(-) (limited to 'ctrl/sysrepo-plugins/yang') diff --git a/ctrl/sysrepo-plugins/yang/hicn/hicn.yang b/ctrl/sysrepo-plugins/yang/hicn/hicn.yang index 484fec6f0..d53cd8aa0 100644 --- a/ctrl/sysrepo-plugins/yang/hicn/hicn.yang +++ b/ctrl/sysrepo-plugins/yang/hicn/hicn.yang @@ -2,12 +2,12 @@ module hicn { namespace "urn:sysrepo:hicn"; prefix hcn; -revision 2019-05-7 { +/* new data types and grouping definition to forward the remote request toward hicn controler--to-->hicn */ + +revision 2019-10-29{ description "Initial revision."; } -/* new data types and grouping definition to forward the remote request toward hicn controler--to-->hicn */ - typedef float { type decimal64 { fraction-digits 2; @@ -41,20 +41,8 @@ leaf cs_reserved_app { default -1; } -leaf pit_dflt_lifetime_sec { - description "Default PIT entry lifetime, otherwise -1 to assign default value."; - type float; - default -1; - } - leaf pit_max_lifetime_sec { - description "Upper bound on PIT entry lifetime, otherwise -1 to assign default value."; - type float; - default -1; - } - -leaf pit_min_lifetime_sec { - description "Upper bound on PIT entry lifetime, otherwise -1 to assign default value ."; + description "Default PIT entry lifetime, otherwise -1 to assign default value."; type float; default -1; } @@ -209,7 +197,7 @@ leaf len { } } -grouping punting_add { +grouping punting_add_ip { leaf ip4 { description "ip4 to be added to the FIB."; @@ -405,16 +393,22 @@ grouping strategy-reply { grouping route-reply { - leaf faceids { - description "Enable / disable ICN forwarder in VPP."; - type uint32; - - } + list route{ + key routeid; + leaf routeid { + description "the unique key for each item."; + type uint32; + } + leaf prefix { + description "IP address."; + type string; - leaf strategy_id { + } + leaf strategy_id { description "compile-time plugin features."; type uint32; - } + } + } } grouping strategies-reply { @@ -429,37 +423,25 @@ grouping strategies-reply { } -/* Hicn configuration */ - -container hicn-conf { - description "config data container for the hicn-vpp."; - container params{ - uses params; - } -} - /* Hicn operational data */ container hicn-state { + config false; description "operational data container for the hicn."; - + container faces{ + uses face-stats-reply; + } container states{ uses states-reply; } container routes{ uses route-reply; } - container strategies{ - uses strategies-reply; - } - container faces{ - uses face-stats-reply; - } - } + /* RPC Definitions */ @@ -479,17 +461,6 @@ rpc node-stat-get { description "Operation to get hicn status in vpp."; } - -rpc strategy-get { - description "Operation to get hicn strategy."; - input { - leaf strategy_id { - description "Upper bound on PIT entry lifetime, otherwise -1 to assign default value ."; - type uint32; - } - } -} - rpc strategies-get { description "Operation to get hicn strategies."; } @@ -549,23 +520,19 @@ rpc face-ip-del { } } -rpc punting-add { +rpc punting-add-ip { description "Operation to add hicn punt."; input { - uses punting_add; + uses punting_add_ip; } } rpc punting-del { description "Operation to del hicn punt."; input { - uses punting_add; /* It uses the same payload as the add*/ + uses punting_add_ip; /* It uses the same payload as the add*/ } } -rpc face-stats-details { - description "Operation to take stat per face."; -} - } -- cgit 1.2.3-korg