aboutsummaryrefslogtreecommitdiffstats
path: root/test/security/check_certificates/check_certificates/templates/cert-nodeports.html.j2
blob: df37c3da9aadb3190bf1af575ab80f6b3f420823 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{% extends "base.html.j2" %}
{% block title %}ONAP Certificates expiration page{% endblock %}

{% block content %}
<h1 class="title is-1">ONAP Certificates</h1>
<section class="section">
 <div class="container">
 <h3 class="subtitle">Node ports</h3>

<table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth">
  <thead>
    <tr>
      <th>Component</th>
      <th>Port</th>
      <th>Expected Expiration Date</th>
      <th>Remaining Days</th>
      <th>Root CA</th>
      <th>Root CA Validity</th>
    </tr>
  </thead>
  <tbody>
    {% for cert in node_ports_list %}
    <tr {% if cert.remaining_days < 0 %} class="has-background-danger" {%elif cert.remaining_days < 30 %}  class="has-background-warning" {%elif cert.remaining_days < 60 %} class="has-background-warning-light " {%elif cert.remaining_days > 389 %} class="has-background-warning-light" {%elif cert.remaining_days == 364 and cert.validity %} class="has-background-success-light" {% endif %}>
         <td>{{ cert.pod_name }}</td>
         <td>{{ cert.pod_port }}</td>
         <td>{{ cert.expiration_date }}</td>
         <td>{{ cert.remaining_days }}</td>
         <td>{{ cert.issuer }}</td>
         <td>{% if cert.validity %}
          <span class="icon is-large has-text-success">
            <i class="fas fa-check-square"></i>
          </span>
           {% else %}
           <span class="icon is-large has-text-danger">
             <i class="fas fa-ban"></i>
           </span>
            {% endif %}</td>
    </tr>
    {% endfor %}
    </tbody>
  </table>

  {% if node_ports_ssl_error_list|length > 0 %}
    <h3 class="subtitle">Node ports SSL errors</h3>
    <table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth">
      <thead>
        <tr>
          <th>Component</th>
          <th>Port</th>
          <th>Error Details</th>
      </tr>
      </thead>
      <tbody>
    {% for cert in node_ports_ssl_error_list %}
         <td>{{ cert.pod_name }}</td>
         <td>{{ cert.pod_port }}</td>
         <td>{{ cert.error_details }}</td>
    </tr>
    {% endfor %}
    </tbody>
  </table>
{% endif %}

{% if node_ports_connection_error_list|length > 0 %}
    <h3 class="subtitle">Node ports Connection errors</h3>
    <table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth">
      <thead>
        <tr>
          <th>Component</th>
          <th>Port</th>
          <th>Error Details</th>
        </tr>
      </thead>
      <tbody>
    {% for cert in node_ports_connection_error_list %}
         <td>{{ cert.pod_name }}</td>
         <td>{{ cert.pod_port }}</td>
         <td>{{ cert.error_details }}</td>
    </tr>
    {% endfor %}
    </tbody>
  </table>
{% endif %}

{% if node_ports_list_type_error_list|length > 0 %}
    <h3 class="subtitle">Node ports Type Error</h3>
    <table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth">
      <thead>
        <tr>
          <th>Component</th>
          <th>Port</th>
          <th>Error Details</th>
        </tr>
      </thead>
      <tbody>
    {% for cert in node_ports_list_type_error_list %}
         <td>{{ cert.pod_name }}</td>
         <td>{{ cert.pod_port }}</td>
         <td>{{ cert.error_details }}</td>
    </tr>
    {% endfor %}
    </tbody>
  </table>
{% endif %}

{% if node_ports_reset_error_list|length > 0 %}
  <h3 class="subtitle">Node ports Connections Error</h3>
  <table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth">
    <thead>
      <tr>
        <th>Component</th>
        <th>Port</th>
          <th>Error Details</th>
      </tr>
    </thead>
    <tbody>
  {% for cert in node_ports_reset_error_list %}
       <td>{{ cert.pod_name }}</td>
       <td>{{ cert.pod_port }}</td>
       <td>{{ cert.error_details }}</td>
  </tr>
  {% endfor %}
  </tbody>
</table>
{% endif %}

{% endblock %}
</div>
</section>