diff options
author | Wataru Ishida <ishida.wataru@lab.ntt.co.jp> | 2016-10-09 07:18:13 -0700 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-10-09 07:18:13 -0700 |
commit | 614746ca1159fe421047df04c5af6f07c38b2e65 (patch) | |
tree | 77e93a40ec38318a96ab3a195fb1baa68372acd2 /tools | |
parent | 6b6f6974fcea37dc006f90dbd2f8d65495048725 (diff) |
*: support long lived graceful restart
Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/pyang_plugins/gobgp.yang | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang index 72c766ab..469ecc48 100644 --- a/tools/pyang_plugins/gobgp.yang +++ b/tools/pyang_plugins/gobgp.yang @@ -585,6 +585,36 @@ module gobgp { } } + grouping long-lived-graceful-restart { + container long-lived-graceful-restart { + container config { + leaf enabled { + type boolean; + } + leaf restart-time { + type uint32; + } + } + container state { + leaf enabled { + type boolean; + } + leaf received { + type boolean; + } + leaf advertised { + type boolean; + } + leaf peer-restart-time { + type uint32; + } + leaf peer-restart-timer-expired { + type boolean; + } + } + } + } + // augment statements augment "/bgp:bgp/bgp:neighbors/bgp:neighbor/bgp:state/bgp:messages/bgp:sent" { description "additional counters"; @@ -708,6 +738,9 @@ module gobgp { leaf notification-enabled { type boolean; } + leaf long-lived-enabled { + type boolean; + } } augment "/bgp:bgp/bgp:neighbors/bgp:neighbor/bgp:graceful-restart/bgp:state" { @@ -718,6 +751,9 @@ module gobgp { leaf notification-enabled { type boolean; } + leaf long-lived-enabled { + type boolean; + } } augment "/bgp:bgp/bgp:peer-groups/bgp:peer-group" { @@ -1013,5 +1049,7 @@ module gobgp { uses route-target-membership-config; } } + + uses long-lived-graceful-restart; } } |