data-container="body" ngbTooltip="{{'REBUILD' | translate}}">
<i class="fas fa-arrows-alt"></i> {{'REBUILD' | translate}}
</button>
- <button type="button" class="btn btn-primary dropdown-item" (click)="openVerticalScaling()" placement="left"
+ <button type="button" class="btn btn-primary dropdown-item" (click)="openVerticalScaling()" placement="left"
data-container="body" ngbTooltip="{{'VERTICALSCALING' | translate}}">
<i class="fas fa-grip-vertical"></i> {{'VERTICALSCALING' | translate}}
</button>
+ <button type="button" class="btn btn-primary dropdown-item" (click)="openVmMigration()" placement="left" data-container="body"
+ [disabled]="operationalStatus === 'failed' || configStatus === 'failed'" ngbTooltip="{{'VMMIGRATION' | translate}}">
+ <i class="fas fa-angle-double-left"></i> {{'VMMIGRATION' | translate}}
+ </button>
</div>
</div>
<div class="btn-group" placement="bottom-right" ngbDropdown display="dynamic" container="body">
<button type="button" class="btn btn-primary dropdown-item" (click)="execNSPrimitiveModal()" placement="left" container="body" ngbTooltip="{{'EXECPRIMITIVE' | translate}}" [disabled]="operationalStatus == 'failed' || configStatus == 'failed'">
<i class="fas fa-magic"></i> {{'EXECPRIMITIVE' | translate}}
</button>
- <button type="button" class="btn btn-primary dropdown-item" [disabled]="operationalStatus === 'scaling'" (click)="manualScaling()"
+ <button type="button" class="btn btn-primary dropdown-item" [disabled]="operationalStatus === 'scaling' || operationalStatus === 'failed' || configStatus === 'failed'" (click)="manualScaling()"
placement="left" data-container="body" ngbTooltip="{{'SCALING' | translate}}">
<i class="fas fa-cubes"></i> {{'SCALING' | translate}}
</button>
- <button type="button" class="btn btn-primary dropdown-item" (click)="openVmMigration()" placement="left" data-container="body"
- [disabled]="operationalStatus === 'failed' || configStatus === 'failed'" ngbTooltip="{{'VMMIGRATION' | translate}}">
- <i class="fas fa-angle-double-left"></i> {{'VMMIGRATION' | translate}}
- </button>
<button type="button" class="btn btn-primary dropdown-item" (click)="openNsUpdate()" placement="left" data-container="body"
[disabled]="operationalStatus === 'failed' || configStatus === 'failed'" ngbTooltip="{{'NSUPDATE' | translate}}">
<i class="fas fa-arrow-alt-circle-up"></i> {{'NSUPDATE' | translate}}
<label for="updateType"> {{'UPDATETYPE' | translate}} *</label>
</div>
<div class="col-sm-6">
- <ng-select formControlName="updateType" [clearable]="false" placeholder="{{'SELECT' | translate}}"
+ <ng-select formControlName="updateType" [clearable]="false" placeholder="{{'SELECT' | translate}} {{'UPDATETYPE' | translate}}"
[items]="updateTypeList" bindLabel="title" bindValue="value" (change)="terminateVNF($event.value)"
[ngClass]="{ 'is-invalid': submitted && f.updateType.errors }"></ng-select>
</div>
</div>
<div class="form-group row" *ngIf="!vnfdIdShow">
<div class="col-sm-6">
- <label for="vnfdId"> {{'VNFDID' | translate}} *</label>
+ <label for="vnfdId"> {{'VNFDNAME' | translate}} *</label>
</div>
<div class="col-sm-6">
- <input autocomplete="off" class="form-control" placeholder="{{'VNFDID' | translate}}" type="text"
- formControlName="vnfdId" id="computeHost"
- [ngClass]="{ 'is-invalid': submitted && f.vnfdId.errors }">
+ <ng-select formControlName="vnfdId" [clearable]="false" placeholder="{{'SELECT' | translate}} {{'VNFDNAME' | translate}}"
+ [items]="selectedVnf" bindLabel="VNFD" bindValue="VNFID"
+ [ngClass]="{ 'is-invalid': submitted && f.vnfdId.errors }"></ng-select>
</div>
</div>
</div>
public vnfdIdShow: boolean = false;
/** Contains MemberVNFIndex values @public */
public memberVnfIndex: {}[] = [];
+ /** Contains MemberVNFIndex content @public */
+ public selectedVnf: {}[];
/** Array holds VNFR Data filtered with nsr ID @public */
public nsIdFilteredData: {}[] = [];
/** Contains vnfdId value @public */
vnfdData[memberIndex] === this.memberIndexValue);
const vnfId: string = 'VNFID';
const selectedvnfId: string = 'VNFD';
+ this.selectedVnf = memberIndexFilteredData;
for (const data of memberIndexFilteredData) {
this.vnfID = data[vnfId];
this.selectedvnfId = data[selectedvnfId];
if (result.message === CONFIGCONSTANT.done) {
this.onSubmit();
}
- }).catch();
+ }).catch((): void => { //empty
+ });
}
this.isLoadingResults = false;
}
}
if (this.version === this.vnfversion) {
const modalRef: NgbModalRef = this.modalService.open(WarningComponent, { backdrop: 'static' });
- modalRef.componentInstance.heading = this.translateService.instant('UPDATEPOLICIES');
- modalRef.componentInstance.confirmationMessage = this.translateService.instant('UPDATEPOLICIESCONTENT');
- modalRef.componentInstance.submitMessage = this.translateService.instant('UPDATEPOLICIES');
+ modalRef.componentInstance.heading = this.translateService.instant('UPDATENS');
+ modalRef.componentInstance.confirmationMessage = this.translateService.instant('GENERICCONTENT');
+ modalRef.componentInstance.submitMessage = this.translateService.instant('UPDATENS');
modalRef.result.then((result: MODALCLOSERESPONSEDATA): void => {
if (result.message === CONFIGCONSTANT.done) {
this.onSubmit();
}
- }).catch();
+ }).catch((): void => { //empty
+ }
+ );
} else {
const modalRef: NgbModalRef = this.modalService.open(WarningComponent, { backdrop: 'static' });
modalRef.componentInstance.heading = this.translateService.instant('REDEPLOY');
if (result.message === CONFIGCONSTANT.done) {
this.onSubmit();
}
- }).catch();
+ }).catch((): void => { //empty
+ });
}
}, (error: ERRORDATA): void => {
this.restService.handleError(error, 'get');
"MEMORYMB": "Arbeitsspeicher MB",
"STORAGEGB": "Speicher GB",
"VCPUCOUNT": "VCPU-Anzahl",
+ "UPDATENS": "NS aktualisieren",
+ "GENERICCONTENT": "Diese Aktion umfasst die Neuerstellung der Ressourcen dieser VNF. Sind Sie sicher, dass Sie fortfahren möchten",
+ "VNFDNAME": "Vnfd-Name",
"PAGE": {
"DASHBOARD": {
"DASHBOARD": "Instrumententafel",
"MEMORYMB": "Memory MB",
"STORAGEGB": "Storage GB",
"VCPUCOUNT": "VCPU Count",
+ "UPDATENS": "Update NS",
+ "GENERICCONTENT": "This action involves recreating the resources of this VNF. Are you sure you want to proceed",
+ "VNFDNAME": "Vnfd Name",
"PAGE": {
"DASHBOARD": {
"DASHBOARD": "Dashboard",
"MEMORYMB": "MB de memoria",
"STORAGEGB": "GB de almacenamiento",
"VCPUCOUNT": "Recuento de VCPU",
+ "UPDATENS": "Actualizar NS",
+ "GENERICCONTENT": "Esta acción implica recrear los recursos de este VNF. Estas seguro que deseas continuar",
+ "VNFDNAME": "Nombre Vnfd",
"PAGE": {
"DASHBOARD": {
"DASHBOARD": "Tablero",
"MEMORYMB": "MB de memória",
"STORAGEGB": "GB de armazenamento",
"VCPUCOUNT": "Contagem de VCPU",
+ "UPDATENS": "Atualizar NS",
+ "GENERICCONTENT": "Esta ação envolve a recriação dos recursos desta VNF. Tem certeza de que deseja continuar",
+ "VNFDNAME": "Nome Vnfd",
"PAGE": {
"DASHBOARD": {
"DASHBOARD": "painel de controle",