Introduce pcep-session-error-policy
[bgpcep.git] / pcep / api / src / main / yang / pcep-config.yang
index 43793ccda605bbfdce62fe57abcb6174d3d8f761..6ffcf67c458983899db2f03bb075fa1b7f739fe8 100644 (file)
@@ -22,10 +22,13 @@ module pcep-config {
 
     revision 2023-01-12 {
         description
-            "Updated timer definitions to uint8 and split them off into
+            "Updates timer definitions to uint8 and split them off into
              pcep-session-timers grouping.
 
-             Introduced pcep-session-tls to hold TLS-related configuration.";
+             Introduces pcep-session-error-policy to configure things like
+             max-unknown-messages.
+
+             Introduces pcep-session-tls to hold TLS-related configuration.";
     }
 
     revision 2022-03-28 {
@@ -41,6 +44,15 @@ module pcep-config {
             "Initial revision.";
     }
 
+    grouping pcep-session-error-policy {
+        leaf max-unknown-messages {
+            type uint16 {
+                range "1..max";
+            }
+            default 5;
+        }
+    }
+
     grouping pcep-session-timers {
         leaf dead-timer-value {
             type uint8;
@@ -137,11 +149,13 @@ module pcep-config {
                 default 4189;
             }
 
+            // FIXME: this should live in topology-api
             leaf ted-name {
                 type string;
                 default "example-linkstate-topology";
             }
 
+            uses pcep-session-error-policy;
             uses pcep-session-timers;
 
             container tls {