From 411bf84633c6a88fa1d08b5238d74b55910cffd1 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Thu, 4 Aug 2016 17:05:57 +0900 Subject: support mrt table dump (TABLE_DUMPv2 format) Only global rib dumping is supported for now. Signed-off-by: FUJITA Tomonori --- tools/pyang_plugins/gobgp.yang | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) (limited to 'tools') 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; } } } -- cgit v1.2.3