db3311ae7a665b83e96265cf5e7f8dfe03fea334
[osm/NG-UI.git] / src / app / utilities / ns-instances-action / NSInstancesActionComponent.html
1 <!--
2 Copyright 2020 TATA ELXSI
3
4 Licensed under the Apache License, Version 2.0 (the 'License');
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in)
17 -->
18 <div class="btn-group list action" role="group">
19 <button routerLink="/instances/operational-view/{{instanceID}}" type="button" class="btn btn-primary" placement="top" container="body" [disabled]="isShowOperationalDashboard" ngbTooltip="{{'PAGE.OPERATIONALDASHBOARD.TITLE' | translate}}">
20 <i class="fas fa-tachometer-alt"></i>
21 </button>
22 <button type="button" class="btn btn-primary" (click)="metrics()" placement="top" container="body" [disabled]="operationalStatus == 'failed' || configStatus == 'failed'" ngbTooltip="{{'METRICS' | translate}}">
23 <i class="fas fa-chart-bar icons"></i>
24 </button>
25 <button type="button" class="btn btn-primary" [disabled]="operationalStatus != 'running'" (click)="nsTopology()" placement="top" container="body" ngbTooltip="{{'TOPOLOGY' | translate}}">
26 <i class="fa fa-sitemap fa-fw icons"></i>
27 </button>
28 <button type="button" class="btn btn-primary" (click)="deleteNSInstance(false)" placement="top" container="body" ngbTooltip="{{'DELETE' | translate}}">
29 <i class="far fa-trash-alt icons"></i>
30 </button>
31 <div class="btn-group" placement="bottom-right" ngbDropdown display="dynamic" container="body">
32 <button type="button" class="btn btn-primary" ngbDropdownToggle placement="top" container="body" [disabled]="operationalStatus === 'failed' || configStatus === 'failed'" ngbTooltip="{{'VIMACTION' | translate}}">
33 <i class="fas fa-desktop"></i>
34 </button>
35 <div class="dropdown-menu list-action-dropdown" ngbDropdownMenu>
36 <button type="button" class="btn btn-primary dropdown-item" (click)="openStart('start')" placement="left"
37 data-container="body" ngbTooltip="{{'START' | translate}}">
38 <i class="fas fa-toggle-on"></i> {{'START' | translate}}
39 </button>
40 <button type="button" class="btn btn-primary dropdown-item" (click)="openStart('stop')" placement="left"
41 data-container="body" ngbTooltip="{{'STOP' | translate}}">
42 <i class="fas fa-toggle-off"></i> {{'STOP' | translate}}
43 </button>
44 <button type="button" class="btn btn-primary dropdown-item" (click)="openStart('rebuild')" placement="left"
45 data-container="body" ngbTooltip="{{'REBUILD' | translate}}">
46 <i class="fas fa-arrows-alt"></i> {{'REBUILD' | translate}}
47 </button>
48 </div>
49 </div>
50 <div class="btn-group" placement="bottom-right" ngbDropdown display="dynamic" container="body">
51 <button type="button" class="btn btn-primary dropdown-toggle action-button" ngbDropdownToggle>
52 {{'ACTION' | translate}}
53 </button>
54 <div class="dropdown-menu list-action-dropdown" ngbDropdownMenu>
55 <button type="button" class="btn btn-primary dropdown-item" (click)="infoNs()" placement="left" container="body" ngbTooltip="{{'INFO' | translate}}">
56 <i class="fas fa-info icons list" title="info"></i> {{'INFO' | translate}}
57 </button>
58 <button type="button" class="btn btn-primary dropdown-item" (click)="execNSPrimitiveModal()" placement="left" container="body" ngbTooltip="{{'EXECPRIMITIVE' | translate}}" [disabled]="operationalStatus == 'failed' || configStatus == 'failed'">
59 <i class="fas fa-magic"></i> {{'EXECPRIMITIVE' | translate}}
60 </button>
61 <button type="button" class="btn btn-primary dropdown-item" [disabled]="operationalStatus === 'scaling'" (click)="manualScaling()"
62 placement="left" data-container="body" ngbTooltip="{{'SCALING' | translate}}">
63 <i class="fas fa-cubes"></i> {{'SCALING' | translate}}
64 </button>
65 <button type="button" class="btn btn-primary dropdown-item" (click)="openVmMigration()" placement="left" data-container="body"
66 [disabled]="operationalStatus === 'failed' || configStatus === 'failed'" ngbTooltip="{{'VMMIGRATION' | translate}}">
67 <i class="fas fa-angle-double-left"></i> {{'VMMIGRATION' | translate}}
68 </button>
69 <button type="button" class="btn btn-primary dropdown-item" (click)="openNsUpdate()" placement="left" data-container="body"
70 [disabled]="operationalStatus === 'failed' || configStatus === 'failed'" ngbTooltip="{{'NSUPDATE' | translate}}">
71 <i class="fas fa-arrow-alt-circle-up"></i> {{'NSUPDATE' | translate}}
72 </button>
73 <button type="button" class="btn btn-primary dropdown-item" (click)="historyOfOperations()" placement="left" container="body" ngbTooltip="{{'HISTORYOFOPERATIONS' | translate}}">
74 <i class="fas fa-history"></i> {{'HISTORYOFOPERATIONS' | translate}}
75 </button>
76 <button type="button" class="btn btn-primary dropdown-item text-danger" (click)="deleteNSInstance(true)" placement="left" container="body" ngbTooltip="{{'FORCEDELETE' | translate}}">
77 <i class="fas fa-trash-alt icons text-danger"></i> {{'FORCEDELETE' | translate}}
78 </button>
79 </div>
80 </div>
81 </div>
82 <app-loader [waitingMessage]="message" *ngIf="isLoadingNSInstanceAction"></app-loader>