Skip to content
Snippets Groups Projects
Commit 14ddd26e authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

WebUI component:

- Added Link Attributes to Details page
- Added formatting of Schedule Constraints in Service and Slice Details page
parent bcbe5f08
No related branches found
No related tags found
2 merge requests!235Release TeraFlowSDN 3.0,!160Resolve "(CTTC) Forecaster component"
...@@ -79,6 +79,29 @@ ...@@ -79,6 +79,29 @@
</div> </div>
<b>Attributes:</b>
<table class="table table-striped table-hover">
<thead>
<tr>
<th scope="col">Key</th>
<th scope="col">Value</th>
</tr>
</thead>
<tbody>
{% for field_descriptor, field_value in link.attributes.ListFields() %}
<tr>
<td>
{{ field_descriptor.name }}
</td>
<td>
{{ field_value }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
<!-- Modal --> <!-- Modal -->
<div class="modal fade" id="deleteModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" <div class="modal fade" id="deleteModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
aria-labelledby="staticBackdropLabel" aria-hidden="true"> aria-labelledby="staticBackdropLabel" aria-hidden="true">
......
...@@ -166,6 +166,15 @@ ...@@ -166,6 +166,15 @@
{% if constraint.sla_availability.all_active %}all{% else %}single{% endif %}-active {% if constraint.sla_availability.all_active %}all{% else %}single{% endif %}-active
</td> </td>
</tr> </tr>
{% elif constraint.WhichOneof('constraint')=='schedule' %}
<tr>
<td>Schedule</td>
<td>-</td>
<td>
Start time: {{ constraint.schedule.start_timestamp }},
Duration: {{ constraint.schedule.duration_days }} days.
</td>
</tr>
{% elif constraint.WhichOneof('constraint')=='sla_isolation' %} {% elif constraint.WhichOneof('constraint')=='sla_isolation' %}
<tr> <tr>
<td>SLA Isolation</td> <td>SLA Isolation</td>
......
...@@ -166,6 +166,15 @@ ...@@ -166,6 +166,15 @@
{% if constraint.sla_availability.all_active %}all{% else %}single{% endif %}-active {% if constraint.sla_availability.all_active %}all{% else %}single{% endif %}-active
</td> </td>
</tr> </tr>
{% elif constraint.WhichOneof('constraint')=='schedule' %}
<tr>
<td>Schedule</td>
<td>-</td>
<td>
Start time: {{ constraint.schedule.start_timestamp }},
Duration: {{ constraint.schedule.duration_days }} days.
</td>
</tr>
{% elif constraint.WhichOneof('constraint')=='sla_isolation' %} {% elif constraint.WhichOneof('constraint')=='sla_isolation' %}
<tr> <tr>
<td>SLA Isolation</td> <td>SLA Isolation</td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment