From b6e606a99480cffd47e73e7b74aa3a10df5ad47d Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Wed, 20 Jul 2016 02:52:59 +0900 Subject: remove gRPC dependency from peer.go move gRPC dependency from peer.go to grpc_server.go Preparation for the removal of gRPC dependency from packages except for api package. Signed-off-by: FUJITA Tomonori --- tools/pyang_plugins/gobgp.yang | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'tools/pyang_plugins/gobgp.yang') diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang index f9aba5f7..9ccf1d4f 100644 --- a/tools/pyang_plugins/gobgp.yang +++ b/tools/pyang_plugins/gobgp.yang @@ -188,6 +188,23 @@ module gobgp { } + grouping gobgp-adjacent-table { + container adj-table { + leaf ADVERTISED { + type uint32; + } + + leaf RECEIVED { + type uint32; + } + + leaf ACCEPTED { + type uint32; + } + } + } + + grouping gobgp-timer { description "additional timer"; @@ -561,6 +578,27 @@ module gobgp { uses gobgp-message-counter; } + augment "/bgp:bgp/bgp:neighbors/bgp:neighbor/bgp:state" { + description "additional counters"; + uses gobgp-adjacent-table; + } + + + augment "/bgp:bgp/bgp:neighbors/bgp:neighbor/bgp:state" { + container Capabilities { + leaf-list remote { + type binary; + } + leaf-list local { + type binary; + } + } + + leaf received-open-message { + type binary; + } + } + augment "/bgp:bgp/bgp:neighbors/bgp:neighbor/bgp:config" { description "additional state elements"; @@ -580,6 +618,10 @@ module gobgp { "The state of administrative operation. If the state is true, it indicates the neighbor is disabled by the administrator"; } + leaf admin-state { + type string; + } + leaf established-count { type uint32; description -- cgit v1.2.3