Newer
Older
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
{% extends 'base.html' %}
{% block content %}
<h1>My Configurations</h1>
<div class="row">
{% if device %}
<div class="col-sm-12">
<span>Device ID:</span>
<h5>{{config_id}}</h5>
</div>
<div class="col-sm-12">
<div class="col-sm-12">
<span>Interface:</span>
<span>
<ul>
<li><span>Name:</span><span class="font-weight-bold" style="font-weight: 700;">{{ interfaces.interface.name
}}</span> </li>
<li><span>Ip:</span> <span class="font-weight-bold" style="font-weight: 700;">{{ interfaces.interface.ip }}</span>
<li><span>Ip:</span> <span class="font-weight-bold" style="font-weight: 700;">{{ interfaces.interface["prefix-legnth"] }}</span>
</li>
<li><span>Enabled:</span> <span class="font-weight-bold" style="font-weight: 700;"> {{ interfaces.interface.enabled
}}</span></li>
</ul>
</span>
</div>
<div class="col-sm-12">
<div class="col-sm-3">
<a id="update" class="btn btn-secondary"
href="{{ url_for('opticalconfig.update_interface',config_uuid=config_id,interface_name=interfaces.interface.name) }}">
<i class="bi bi-pencil-square"></i>
Update interface
</a>
</div>
<div class="col-sm-12 hr bg-primary" style="height:1px; margin:5px 0;"></div>
</div>
</div>
{% for channel in device %}
<div class="col-sm-12">
<span style="font-weight: 700;">channel name:{{channel.name.index}}</span>
</div>
<div class="col-sm-4">
<span>Frequency:</span>
<p class="font-weight-bold" style="font-weight: 700;">{{channel.frequency}}</p>
</div>
<div class="col-sm-4">
<span>Target Output Power:</span>
<span class="font-weight-bold" style="font-weight: 700;">{{channel.targetOutputPower}}</span>
</div>
<div class="col-sm-4">
<span>Operational Mode:</span>
<span class="font-weight-bold" style="font-weight: 700;">{{channel.operationalMode}}</span>
</div>
<div class="col-sm-4">
<span>Line Port:</span>
<span class="font-weight-bold" style="font-weight: 700;">{{channel.line_port}}</span>
</div>
<div class="col-sm-12">
<div class="col-sm-3">
<a id="update" class="btn btn-secondary"
href="{{ url_for('opticalconfig.update',config_uuid=config_id,channel_name=channel.name) }}">
<i class="bi bi-pencil-square"></i>
Update channel
</a>
</div>
</div>
<div class="col-sm-12 hr bg-primary" style="height:1px; margin:5px 0;"></div>
{% endfor %}
</div>
{% else %}
<div class="col">
<h4 colspan="7">No devices found</h4>
</div>
{% endif %}
<!-- <div class="col">
<a href="{{ url_for('service.add') }}" class="btn btn-primary" style="margin-bottom: 10px;">
<i class="bi bi-plus"></i>
Add New Service
</a>
</div> -->
<!-- Only display XR service addition button if there are XR constellations. Otherwise it might confuse
user, as other service types do not have GUI to add service yet. -->
<!-- <div class="col">
<form>
<div class="input-group">
<input type="text" aria-label="Search" placeholder="Search..." class="form-control"/>
<button type="submit" class="btn btn-primary">Search</button>
</div>
</form>
</div> -->
</div>
{% endblock %}