From 5ec31f19f7a74a884e2bef8e5238fdd4cfa2c4c2 Mon Sep 17 00:00:00 2001 From: Jan Srnicek Date: Tue, 14 Mar 2017 09:29:12 +0100 Subject: HC2VPP-7 - Split vpp state/Cli RPC to separate module Introduces VppManageModule containing - Vpp state attributes - CLI RPC support - Keep-alive Change-Id: I8907e57132cc9e57840aa3b9607fa131a77f767d Signed-off-by: Jan Srnicek --- v3po/api/src/main/yang/v3po.yang | 71 +++++++--------------------------------- 1 file changed, 12 insertions(+), 59 deletions(-) (limited to 'v3po/api/src/main/yang/v3po.yang') diff --git a/v3po/api/src/main/yang/v3po.yang b/v3po/api/src/main/yang/v3po.yang index f5f6b3293..e9df2f933 100644 --- a/v3po/api/src/main/yang/v3po.yang +++ b/v3po/api/src/main/yang/v3po.yang @@ -39,7 +39,7 @@ module v3po { typedef bridge-domain-ref { type leafref { - path "/vpp/bridge-domains/bridge-domain/name"; + path "/bridge-domains/bridge-domain/name"; } description "This type is used by to reference a bridge domain table"; @@ -585,24 +585,19 @@ module v3po { } } - container vpp { - description - "VPP config data"; + container bridge-domains { + list bridge-domain { + key "name"; - container bridge-domains { - list bridge-domain { - key "name"; + leaf name { + type string; + } - leaf name { - type string; - } + uses bridge-domain-attributes; + uses l2-fib-attributes; - uses bridge-domain-attributes; - uses l2-fib-attributes; - - description - "bridge-domain configuration"; - } + description + "bridge-domain configuration"; } } @@ -675,13 +670,7 @@ module v3po { } } - container vpp-state { - config false; - - description - "VPP operational data"; - - container bridge-domains { + container bridge-domains-state { // FIXME: Should this live in bridge-domain.yang in a modular fashion ? list bridge-domain { @@ -696,29 +685,6 @@ module v3po { description "bridge-domain operational data"; } - } - - container version { - leaf name { - type string; - } - leaf build-directory { - type string; - } - leaf build-date { - type string; - } - leaf branch { - type string; - } - leaf pid { - type uint32; - description - "PID of the vpp process"; - } - description - "vlib version info"; - } } // VPP Notifications @@ -760,17 +726,4 @@ module v3po { type interface-name-or-index; } } - - rpc cli-inband { - input { - leaf cmd { - type string; - } - } - output { - leaf reply { - type string; - } - } - } } -- cgit 1.2.3-korg