begin working on OBP and Peer systems

This commit is contained in:
Cort Buffington
2018-12-05 13:45:11 -06:00
parent e153abc3f2
commit 2d2ed8c938
2 changed files with 49 additions and 44 deletions
+35 -33
View File
@@ -56,34 +56,48 @@
<h4>Client Systems</h4>
<table style="width:100%; font: 10pt arial, sans-serif">
<colgroup>
<col style="width: 10%" />
<col style="width: 20%" />
<col style="width: 15%" />
<col style="width: 15%" />
<col style="width: 8%" />
<col style="width: 4%" />
<col style="width: 3%" />
<col style="width: 10%" />
<col style="width: 15%" />
<col style="width: 15%" />
<col style="width: 10%" />
<col style="width: 15%" />
</colgroup>
<tr style="width:100%; font: 10pt arial, sans-serif; background-color:#666666; color:white">
<th>HBP System</th>
<th>Client Radio ID</th>
<th>Callsign</th>
<th>Connection</th>
<th>Ping Sent</th>
<th>Ping Ack</th>
<th>Master</th>
<th>ID/Callsign/Location<br>Master IP:Port</th>
<th>Connected<br>Sent/Ack/Missed</th>
<th>LinkedTS</th>
<th>Slot</th>
<th>Call<br>Type</th>
<th>Source<br>Subscriber</th>
<th>Source<br>Peer</th>
<th>Destination</th>
</tr>
{% for _client in _table['PEERS'] %}
{% for _peer in _table['PEERS'] %}
<tr>
<td style="font-weight:bold"> {{ _client}} </td>
<td>{{ _table['PEERS'][_client]['RADIO_ID'] }}</td>
<td>{{ _table['PEERS'][_client]['CALLSIGN'] }}</td>
<td style={{ 'background-color:#00ff00' if _table['PEERS'][_client]['STATS']['CONNECTION'] == 'YES' else ';background-color:#ff0000' }}>{{ _table['PEERS'][_client]['STATS']['CONNECTION'] }}</td>
<td>{{ _table['PEERS'][_client]['STATS']['PINGS_SENT'] }}</td>
<td>{{ _table['PEERS'][_client]['STATS']['PINGS_ACKD'] }}</td>
<td>{{ _table['PEERS'][_client]['MASTER_IP'] }}</td>
<td style="font-weight:bold" rowspan="2"> {{ _peer}}</td>
<td rowspan="2">{{ _table['PEERS'][_peer]['RADIO_ID'] }}, {{_table['PEERS'][_peer]['CALLSIGN']}}, {{_table['PEERS'][_peer]['LOCATION']}}<br><div style="font: 8pt arial, sans-serif">Master: {{ _table['PEERS'][_peer]['MASTER_IP'] }}:{{ _table['PEERS'][_peer]['MASTER_PORT'] }}</div></td>
<td rowspan="2"; style={{ 'background-color:#00ff00' if _table['PEERS'][_peer]['STATS']['CONNECTION'] == 'YES' else ';background-color:#ff0000' }}>{{ _table['PEERS'][_peer]['STATS']['CONNECTED'] }}<br>{{ _table['PEERS'][_peer]['STATS']['PINGS_SENT'] }}/{{ _table['PEERS'][_peer]['STATS']['PINGS_ACKD'] }}/{{ _table['PEERS'][_peer]['STATS']['PINGS_SENT'] - _table['PEERS'][_peer]['STATS']['PINGS_ACKD'] }}</td>
<td rowspan="2"></td>
<td>TS1</td>
<td></td>
<td></td>
<td></td>
<td></td>
<tr>
<td>TS2</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tr>
{% endfor %}
</table>
@@ -91,33 +105,21 @@
<h4>OpenBridge Systems</h4>
<table style="width:100%; font: 10pt arial, sans-serif">
<colgroup>
<col style="width: 20%" />
<col style="width: 15%" />
<col style="width: 15%" />
<col style="width: 10%" />
<col style="width: 15%" />
<col style="width: 15%" />
<col style="width: 10%" />
<col style="width: 75%" />
</colgroup>
<tr style="width:100%; font: 10pt arial, sans-serif; background-color:#666666; color:white">
<th>OpenBridge System</th>
<th>Network ID</th>
<th>Target IP</th>
<th>Target Port</th>
<th />
<th />
<th />
<th>Network ID<br>Target IP:Port</th>
<th>Active Calls</th>
</tr>
{% for _openbridge in _table['OPENBRIDGES'] %}
<tr>
<td style="font-weight:bold"> {{ _openbridge}} </td>
<td>{{ _table['OPENBRIDGES'][_openbridge]['NETWORK_ID'] }}</td>
<td>{{ _table['OPENBRIDGES'][_openbridge]['TARGET_IP'] }}</td>
<td>{{ _table['OPENBRIDGES'][_openbridge]['TARGET_PORT'] }}</td>
<th />
<th />
<td>{{ _table['OPENBRIDGES'][_openbridge]['NETWORK_ID'] }}<br><div style="font: 8pt arial, sans-serif">{{ _table['OPENBRIDGES'][_openbridge]['TARGET_IP'] }}:{{ _table['OPENBRIDGES'][_openbridge]['TARGET_PORT'] }}</div></td>
<th />
</tr>
{% endfor %}