X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sla%2Ftemplates%2Fslice-tab-sla.html;h=f09aa8de739de359c5611c65c90c2227d4ac1a34;hb=2644f55ba6617124d8e3c0513da020cc27ec77f9;hp=c605b6d3c4b77141a720a890e61a535d70d896e4;hpb=dd36aa85411b2985e8d6a321acf0544f2887345a;p=myslice.git diff --git a/sla/templates/slice-tab-sla.html b/sla/templates/slice-tab-sla.html index c605b6d3..f09aa8de 100755 --- a/sla/templates/slice-tab-sla.html +++ b/sla/templates/slice-tab-sla.html @@ -2,7 +2,7 @@
-
+
@@ -48,14 +48,14 @@
{{ a.agreement_id|default:" " }}
Provider
{{ a.context.provider|default:" " }}
-
Consumer
+
Experimenter
{{ a.context.consumer|default:" " }}
Service
Testbed guarantees 0.99 Uptime rate for 0.99 rate of the resources during the sliver lifetime
Testbed
{{ a.context.testbed_formatted }}
Accepted on:
-
{{ a.context.expirationtime|default:" " }}
+
{{ a.context.time_formatted|default:" " }}
{% if a.guaranteestatus == "VIOLATED" %} - {% else %} + {% elif a.guaranteestatus == "FULFILLED" %} + {% else %} + {% endif %} - - - - - + + + + {% with a.agreement_id as key %} + + + + {% for k,v in enforcements.items %} + {% if key == k %} + + + {% if a.guaranteestatus == "VIOLATED" and v == "UNACTIVE" %} + + {% elif a.guaranteestatus == "FULFILLED" and v == "UNACTIVE" %} + + {% endif %} + {% endif %} - {% for tname,t in a.guaranteeterms.items %} + {% endfor %} + + + + + + + + + {% endwith %} + - View Violations + data-violation="{{ t.name }}">View Violations + {{last_violation_list}} + {{ t.name }} {% endif %} - {% endfor %} + {% endfor %} --> + + + - {% empty %} + {% endfor %}
{{ a.context.template_id }}{{ a.context.expirationtime }} - {% with a.agreement_id as key %} - {% if enforcements.key == false %} - Disabled - {% else %} - Enabled - {% endif %} - {% endwith %} - - - - View Agreement - {{ a.context.template_id }}{{ a.context.time_formatted }} + + + View Agreement + + {% if v == "ACTIVE" %} + In progress + {% elif v == "UNACTIVE" %} + Disabled + {% endif %} + + Result: 99% uptime for + {% for vi, value in last_violation_list.items %} + {% if a.agreement_id == vi %} + {{ value }}% + {% endif %} + {% endfor %} + resources + + Result: 99% uptime for + {% for vi, value in last_violation_list.items %} + {% if a.agreement_id == vi %} + {{ value }}% + {% endif %} + {% endfor %} + resources +