blob: 0c3ece3ca118e7679c853b6673d884abbaa840f6 (
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
|
<!--
Copyright (C) 2018 CMCC, Inc. and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<h3 class="title"> Services List </h3>
<hr>
<div class="model">
<button class="back" nz-button (click)="goback()"><span><i class="anticon anticon-rollback"></i></span></button>
<div class="detaildata fl">
<h3 class="title" style="margin-bottom: 20px">{{detailParams['service-instance-name']}} Instance Detail</h3>
<nz-tabset [nzTabPosition]="'top'" [nzType]="'card'">
<nz-tab [nzTitle]="'SOTN VPN Info'">
<div class="sotnvpn clearfix">
<!--<h3>SOTN VPN Info</h3>-->
<ul>
<li><span>Name:</span> {{sotnVpnInfo.name}}</li>
<li><span>Description:</span> {{sotnVpnInfo.description}} </li>
<li><span>Start Time:</span> {{sotnVpnInfo.startTime}}</li>
<li><span>End Time:</span> {{sotnVpnInfo.endTime}} </li>
<li><span>COS:</span> {{sotnVpnInfo.COS}}</li>
<li><span>Reroute Enable:</span> {{sotnVpnInfo.reroute}} </li>
<li><span>Service Level Specification:</span> {{sotnVpnInfo.SLS}}</li>
<li><span>DualLink:</span> {{sotnVpnInfo.dualLink}} </li>
<li><span>CIR:</span> {{sotnVpnInfo.CIR}}</li>
<li><span>EIR:</span> {{sotnVpnInfo.EIR}} </li>
<li><span>CBS:</span> {{sotnVpnInfo.CBS}}</li>
<li><span>EBS:</span> {{sotnVpnInfo.EBS}} </li>
<li><span>Color Aware:</span> {{sotnVpnInfo.colorAware}}</li>
<li><span>Coupling Flag:</span> {{sotnVpnInfo.couplingFlag}} </li>
</ul>
</div>
</nz-tab>
<nz-tab [nzTitle]="'Site List'">
<div class="site">
<!--<h3>Site List</h3>-->
<nz-table #nzTable [nzData]="siteList"
[nzShowPagination]="false"
nzSize="small">
<thead>
<tr>
<th nzWidth="10%"> NO. </th>
<th nzWidth="15%"> Name </th>
<th nzWidth="20%"> Description </th>
<th nzWidth="15%"> Post Code </th>
<th nzWidth="15%"> Address </th>
<th nzWidth="15%"> VLAN </th>
<th nzWidth="10%"> Action </th>
</tr>
</thead>
<tbody>
<tr *ngFor="let item of nzTable.data; let i = index; ">
<td>{{i+1}}</td>
<td>{{item.baseNames.name}}</td>
<td>{{item.baseNames.description}}</td>
<td>{{item.baseNames.postcode}}</td>
<td>{{item.baseNames.address}}</td>
<td>{{item.baseNames.vlan}}</td>
<td (click)="showSiteDetail(item)"> <a href="javascript:;">Detail</a> </td>
</tr>
</tbody>
</nz-table>
<div class="siteDetail" *ngIf="siteDetail">
<h3>Site_Enterprise Service <span class="closeDetail fr" (click)="siteDetail=false">X</span></h3>
<ul>
<li><span>Name:</span> {{ siteDetailData.baseNames.name}}</li>
<li><span>Description:</span> {{ siteDetailData.baseNames.description }} </li>
<li *ngIf="detailParams.serviceDomain == 'CCVPN'"><span>Type:</span> {{ siteDetailData.baseNames.type }} </li>
<li *ngIf="detailParams.serviceDomain == 'CCVPN'"><span>Role:</span> {{ siteDetailData.baseNames.role }} </li>
<li><span>PostCode:</span> {{ siteDetailData.baseNames.postcode }} </li>
<li><span>VLAN:</span> {{ siteDetailData.baseNames.vlan }}</li>
<li><span>Address:</span> {{ siteDetailData.baseNames.address }}</li>
<li><span>ClientSignal:</span> {{ siteDetailData.baseNames.clientSignal }}</li>
<li><span>ControlPoint:</span> {{ siteDetailData.baseNames.controlPoint }}</li>
<li><span>Emails:</span> {{ siteDetailData.baseNames.emails }}</li>
<li><span>GroupName:</span> {{ siteDetailData.baseNames.groupName }}</li>
<li><span>GroupRole:</span> {{ siteDetailData.baseNames.groupRole }}</li>
<li><span>Latitude:</span> {{ siteDetailData.baseNames.latitude }}</li>
<li><span>Longitude:</span> {{ siteDetailData.baseNames.longitude }}</li>
<li><span>SotnVpnName:</span> {{ siteDetailData.baseNames.sotnVpnName }}</li>
</ul>
<div *ngIf="detailParams.serviceDomain == 'CCVPN'">
<h3>CPE</h3>
<ul>
<li><span>Name:</span> {{siteDetailData.cpeNames.device_name}}</li>
<li><span>Version:</span> {{ siteDetailData.cpeNames.device_version }} </li>
<li><span>ESN:</span> {{ siteDetailData.cpeNames.device_esn }} </li>
<li><span>Class:</span> {{ siteDetailData.cpeNames.device_class }} </li>
<li><span>System IP:</span> {{ siteDetailData.cpeNames.device_systemIp }} </li>
<li><span>Vendor:</span> {{ siteDetailData.cpeNames.device_vendor }}</li>
<li><span>Type:</span> {{ siteDetailData.cpeNames.device_type }}</li>
</ul>
<h3>WAN Port</h3>
<nz-table #nzTable [nzData]="siteDetailData.wanportNames"
[nzShowPagination]="false"
nzSize="small">
<thead>
<tr>
<th nzWidth="10%"> NO. </th>
<th nzWidth="15%"> Name </th>
<th nzWidth="20%"> Description </th>
<th nzWidth="15%"> PortType </th>
<th nzWidth="15%"> PortNumber </th>
<th nzWidth="15%"> IPAddress </th>
<th nzWidth="10%"> Action </th>
</tr>
</thead>
<tbody>
<tr *ngFor="let item of nzTable.data; let i = index; ">
<td>{{i+1}}</td>
<td>{{item.sitewanport_name}}</td>
<td>{{item.sitewanport_description}}</td>
<td>{{item.sitewanport_portType}}</td>
<td>{{item.sitewanport_portNumber}}</td>
<td>{{item.sitewanport_ipAddress}}</td>
<td (click)="showWanportDetail(item)"> <a href="javascript:;">Detail</a> </td>
</tr>
</tbody>
</nz-table>
<nz-modal [(nzVisible)]="wanPortModal" [nzTitle]="modalTitle" [nzContent]="modalContent" [nzFooter]="modalFooter" (nzOnCancel)="handleCancel()">
<ng-template #modalTitle>
WAN Port Detail
</ng-template>
<ng-template #modalContent>
<p> <span style="color:#3fa8eb;font:700 14px 'Arial';display:inline-block;width:200px;"> Name </span> {{wanPortDetail.sitewanport_name}}</p>
<p> <span style="color:#3fa8eb;font:700 14px 'Arial';display:inline-block;width:200px;"> Description: </span> {{wanPortDetail.sitewanport_description}} </p>
<p> <span style="color:#3fa8eb;font:700 14px 'Arial';display:inline-block;width:200px;"> Port Type: </span> {{wanPortDetail.sitewanport_portType}} </p>
<p> <span style="color:#3fa8eb;font:700 14px 'Arial';display:inline-block;width:200px;"> Port Number: </span> {{wanPortDetail.sitewanport_portNumber}} </p>
<p> <span style="color:#3fa8eb;font:700 14px 'Arial';display:inline-block;width:200px;"> Ip Address: </span> {{wanPortDetail.sitewanport_ipAddress}} </p>
<p> <span style="color:#3fa8eb;font:700 14px 'Arial';display:inline-block;width:200px;"> Provider IP Address: </span> {{wanPortDetail.sitewanport_providerIpAddress}} </p>
<p> <span style="color:#3fa8eb;font:700 14px 'Arial';display:inline-block;width:200px;"> Transport Nerwork: </span> {{wanPortDetail.sitewanport_transportNetworkName}} </p>
<p> <span style="color:#3fa8eb;font:700 14px 'Arial';display:inline-block;width:200px;"> Input Bandwidth: </span> {{wanPortDetail.sitewanport_inputBandwidth}} </p>
<p> <span style="color:#3fa8eb;font:700 14px 'Arial';display:inline-block;width:200px;"> Output Bandwidth: </span> {{wanPortDetail.sitewanport_outputBandwidth}} </p>
</ng-template>
<ng-template #modalFooter>
</ng-template>
</nz-modal>
</div>
</div>
</div>
</nz-tab>
<nz-tab [nzTitle]="'Site_Group List'" *ngIf="detailParams.serviceDomain == 'CCVPN'">
<div class="sitegroup" >
<h3>Site_Group List</h3>
<nz-table #nzTable [nzData]="siteGroupList"
[nzLoading]="loading"
[nzShowPagination]="false"
nzSize="small">
<thead>
<tr>
<th nzWidth="10%"> NO. </th>
<th nzWidth="20%"> Group Name </th>
<th nzWidth="20%"> Topology </th>
</tr>
</thead>
<tbody>
<tr *ngFor="let item of nzTable.data; let i = index; ">
<td>{{i+1}}</td>
<td>{{item.name}}</td>
<td>{{item.topology}}</td>
</tr>
</tbody>
</nz-table>
</div>
</nz-tab>
</nz-tabset>
</div>
<div class="chart fr">
<div id="detailChart">
<svg id="togo">
</svg>
</div>
</div>
</div>
|