Modify spectrum assignment management in PCE
[transportpce.git] / api / src / main / yang / service_path / transportpce-pce@2021-07-01.yang
similarity index 91%
rename from api/src/main/yang/service_path/transportpce-pce@2020-01-28.yang
rename to api/src/main/yang/service_path/transportpce-pce@2021-07-01.yang
index 8c8943abc49d7aed205ae2b0045aa2035997e960..b6850bcd854fb23aeb64b2cc46f7d37a838c7e10 100644 (file)
@@ -54,6 +54,10 @@ module transportpce-pce {
       ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
       POSSIBILITY OF SUCH DAMAGE";
 
+  revision 2021-07-01 {
+    description
+      "Version 1.8";
+  }
   revision 2020-01-28 {
     description
       "Version 1.7";
@@ -209,4 +213,27 @@ module transportpce-pce {
       uses stubpce-path-description;
     }
   }
+
+  container spectrum-assignment {
+    description
+      "Spectrum assignment management using index steps and flexgrid property";
+    leaf begin-index {
+      type uint16;
+      mandatory true;
+      description
+        "Begin index of spectrum assignment";
+    }
+    leaf stop-index {
+      type uint16;
+      mandatory true;
+      description
+        "End index of spectrum assignment";
+    }
+    leaf flex-grid {
+      type boolean;
+      mandatory true;
+      description
+        "Set it to true for flexgrid, false otherwise";
+    }
+  }
 }