summaryrefslogtreecommitdiffhomepage
path: root/tools/pyang_plugins
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-03-20 00:09:44 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-03-20 00:09:44 +0900
commit731f4fa3ea2ea58b1dccdb62eb14a407594c81d8 (patch)
tree4aa29c89ab7824a66475674b0db9377695ebe812 /tools/pyang_plugins
parent66ac5a1051267c5d915461a2556ef33e8ac9e670 (diff)
server: support mrt dump rotation like Quagga
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'tools/pyang_plugins')
-rw-r--r--tools/pyang_plugins/gobgp.yang40
1 files changed, 33 insertions, 7 deletions
diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang
index 16ad5f40..e7dc1dcd 100644
--- a/tools/pyang_plugins/gobgp.yang
+++ b/tools/pyang_plugins/gobgp.yang
@@ -708,19 +708,45 @@ module gobgp {
uses gobgp-bmp-servers;
}
- augment "/bgp:bgp" {
+ typedef mrt-type {
+ type enumeration {
+ enum UPDATES {
+ description "RPKI disabled";
+ }
+ enum TABLE {
+ description "If the origin AS, prefix, maximum prefix length is
+ exist in the range of ROA";
+ }
+ }
+ }
+
+ grouping gobgp-mrt {
description "additional mrt configuration";
- container mrt {
- description
- "Configure dump bgp messages in the mrt format";
- leaf file-name {
- type string;
+ container mrt-dump {
+ list mrt {
+ key "dump-type";
description
- "Configures a file name to be written.";
+ "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 int64;
+ }
}
}
}
+ augment "/bgp:bgp" {
+ description "additional mrt configuration";
+ uses gobgp-mrt;
+ }
+
augment "/bgp:bgp/bgp:global" {
description "zebra configuration";
container zebra {