summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-05-23 11:40:52 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-05-23 20:32:47 +0900
commit7c42e295e28c233fdb7a130681cd490308f116ca (patch)
treefa6e4117db2e9f2f31a914c0aa932772760386b8 /tools
parenta7521827e1d8c964f1c9f342dc39d02f45660c49 (diff)
add collector feature
dump the update messages and the state change of peers into influxdb: [collector.config] url = "http://localhost:8086" db-name = "gobgp" Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'tools')
-rw-r--r--tools/pyang_plugins/gobgp.yang27
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang
index 325942f2..f9aba5f7 100644
--- a/tools/pyang_plugins/gobgp.yang
+++ b/tools/pyang_plugins/gobgp.yang
@@ -808,6 +808,33 @@ module gobgp {
uses zebra-set;
}
+ grouping collector-config {
+ leaf url {
+ type string;
+ }
+ leaf db-name {
+ type string;
+ }
+ leaf table-dump-interval {
+ type uint64;
+ }
+ }
+
+ grouping collector-set {
+ container collector {
+ container config {
+ uses collector-config;
+ }
+ container state {
+ uses collector-config;
+ }
+ }
+ }
+
+ augment "/bgp:bgp" {
+ uses collector-set;
+ }
+
augment "/bgp:bgp/bgp:global" {
container mpls-label-range {
description "mpls labal range";