summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/pyang_plugins/gobgp.yang38
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;
}
}