Add Long-lived Graceful restart capabilities
[bgpcep.git] / bgp / parser-api / src / main / yang / bgp-multiprotocol.yang
index 71705a654338c6031e277a61dc37b506a7e84d2f..da4e59d4ee4412e118a4644b7209c8ee1a414395 100644 (file)
@@ -117,6 +117,30 @@ module bgp-multiprotocol {
                 }
             }
         }
+        container ll-graceful-restart-capability {
+            reference "https://tools.ietf.org/html/draft-uttaro-idr-bgp-persistence-04";
+
+            list tables {
+                uses bgp-table-type;
+                key "afi safi";
+
+                leaf afi-flags {
+                    type bits {
+                        bit forwarding-state {
+                            position 0;
+                        }
+                    }
+                    mandatory true;
+                }
+                leaf long-live-stale-time {
+                    type uint32 {
+                        range 0..16777215;
+                    }
+                    units seconds;
+                    default 0;
+                }
+            }
+        }
         container add-path-capability {
             reference "http://tools.ietf.org/html/draft-ietf-idr-add-paths-13#section-4";
             list address-families {