diff options
Diffstat (limited to 'tools/pyang_plugins')
-rw-r--r-- | tools/pyang_plugins/gobgp.yang | 34 |
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; } } } |