<!--
 Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/)

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-->

{% extends 'base.html' %}
{% block content %}
<h1>Path Computation Element (PCE)</h1>
<br><body>
     <div class="container" style="margin-top: 20px; margin-left: 15px;">
          <h3>Active Sessions in the PCE: {{ sessions }}</h3>
     </div>
     <form id="manage_pcep" method="POST" enctype="multipart/form-data" style="margin-left: 20px;">
          {{ pcep_manage_form.hidden_tag() }}
          <fieldset class="form-group">
               <legend>Input the desired command to manage the PCE</legend>
               <div class="form-group row">
                    <div class="col-sm-8">
                         {{ pcep_manage_form.command(class="form-control") }}
                    </div>
                    <div class="col-sm-2">
                         {{ pcep_manage_form.submit(class='btn btn-primary') }}
                    </div>
               </div>
          </fieldset>
     </form>
     <div class="container" style="margin-top: 20px; margin-left: 15px;">
          <div class="commands" style="margin-top: 20px;">
              <p style="font-size: 18px; margin-bottom: 10px;">Available commands:</p>
              <ul style="list-style-type: none; padding: 0;">
                  <li style="margin-bottom: 15px;">
                      <strong style="font-size: 24px;">Initiate</strong>
                      <span style="font-size: 16px; display: block;">The "Initiate" command is used to request the PCE (Path Computation Element) to compute a new path for a specific Label Switched Path (LSP). It initiates the process of establishing a new path for network traffic based on specified constraints and requirements.</span>
                      <span style="font-size: 16px; display: block;">Example of use "initiate lsp nombre_lsp 10.95.90.56 1.1.1.1 1.1.1.2 m1228800 na192.168.3.11-192.168.3.13 m819200 na192.168.2.13-192.168.2.12" </span>
                    </li>
                  <li style="margin-bottom: 15px;">
                      <strong style="font-size: 24px;">Update</strong>
                      <span style="font-size: 16px; display: block;">The "Update" command is used to inform the PCE about modifications or updates to an existing LSP. It allows the Path Computation Client (PCC) to request changes to the parameters or attributes of an LSP, such as bandwidth requirements or path constraints.</span>
                      <span style="font-size: 16px; display: block;">Example of use "update lsp 3 m1228800 na192.168.3.11-192.168.3.13" </span>
                    
                    </li>
                  <li style="margin-bottom: 15px;">
                      <strong style="font-size: 24px;">Terminate</strong>
                      <span style="font-size: 16px; display: block;">The "Terminate" command is used to request the termination or removal of an existing LSP. It signals to the PCE that the specified LSP should be torn down, freeing up network resources and terminating the path for the associated traffic.</span>
                      <span style="font-size: 16px; display: block;">Example of use "terminate lsp  16 nombreLSP16"  </span>
                  </li>
              </ul>
          </div>
      </div>
</body>
{% endblock %}