summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-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 {