summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-08-04 17:05:57 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-08-14 07:51:42 +0900
commit411bf84633c6a88fa1d08b5238d74b55910cffd1 (patch)
treee6d9d399bcb82f0245fabe011e0d08ea11b137f0 /tools
parentd4b8a858299acc7164f452c8aa4180695252f38e (diff)
support mrt table dump (TABLE_DUMPv2 format)
Only global rib dumping is supported for now. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'tools')
-rw-r--r--tools/pyang_plugins/gobgp.yang34
1 files changed, 23 insertions, 11 deletions
diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang
index 98d42729..3293d9d6 100644
--- a/tools/pyang_plugins/gobgp.yang
+++ b/tools/pyang_plugins/gobgp.yang
@@ -820,24 +820,36 @@ module gobgp {
}
}
+ grouping gobgp-mrt-set {
+ container config {
+ leaf dump-type {
+ type mrt-type;
+ }
+ leaf file-name {
+ type string;
+ description
+ "Configures a file name to be written.";
+ }
+ leaf dump-interval {
+ type uint64;
+ }
+ leaf rotation-interval {
+ type uint64;
+ }
+ }
+ }
+
grouping gobgp-mrt {
description "additional mrt configuration";
container mrt-dump {
list mrt {
key "file-name";
- description
- "Configure dump bgp messages in the mrt format";
- leaf dump-type {
- type mrt-type;
- }
leaf file-name {
- type string;
- description
- "Configures a file name to be written.";
- }
- leaf interval {
- type uint64;
+ type leafref {
+ path "../config/file-name";
+ }
}
+ uses gobgp-mrt-set;
}
}
}