| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 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="modal-header"> |
| 19 | <h4 class="modal-title" id="modal-basic-title">{{'PAGE.SDNCONTROLLER.DETAILS' | translate}}</h4> |
| 20 | <button class="button-xs" type="button" class="close" aria-label="Close" (click)="activeModal.close()"> |
| 21 | <i class="fas fa-times-circle text-danger"></i> |
| 22 | </button> |
| 23 | </div> |
| 24 | <div class="modal-body modal-body-custom-height p-0"> |
| 25 | <table class="table table-striped table-layout-fixed mb-0" *ngIf="sdnDetails else noData"> |
| 26 | <tr> |
| 27 | <td colspan="2"> |
| 28 | <b>{{'ID' | translate}}:</b> {{(sdnDetails._id)?sdnDetails._id:''}} |
| 29 | </td> |
| 30 | </tr> |
| 31 | <tr> |
| 32 | <td> |
| 33 | <b>{{'OPERATIONALSTATE' | translate}}:</b> |
| Barath Kumar R | 208bef2 | 2020-07-07 12:28:04 +0530 | [diff] [blame^] | 34 | <span class="badge ml-1" [ngClass]="{'badge-warning text-white':sdnDetails._admin.operationalState === operationalStateFirstStep, |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 35 | 'badge-success':sdnDetails._admin.operationalState === operationalStateSecondStep, |
| 36 | 'badge-danger':sdnDetails._admin.operationalState === operationalStateThirdStep}"> |
| 37 | {{(sdnDetails._admin.operationalState)?sdnDetails._admin.operationalState:''}}</span> |
| 38 | </td> |
| 39 | <td> |
| 40 | <b>{{'IP' | translate}}:</b> {{(sdnDetails.ip)?sdnDetails.ip:''}} |
| 41 | </td> |
| 42 | </tr> |
| 43 | <tr> |
| 44 | <td> |
| 45 | <b>{{'NAME' | translate}}:</b> {{(sdnDetails.name)?sdnDetails.name:''}} |
| 46 | </td> |
| 47 | <td> |
| 48 | <b>{{'PORT' | translate}}:</b> {{(sdnDetails.port)?sdnDetails.port:''}} |
| 49 | </td> |
| 50 | </tr> |
| 51 | <tr> |
| 52 | <td> |
| 53 | <b>{{'TYPE' | translate}}:</b> {{(sdnDetails.type)?sdnDetails.type:''}} |
| 54 | </td> |
| 55 | <td> |
| 56 | <b>{{'VERSION' | translate}}:</b> {{(sdnDetails.version)?sdnDetails.version:''}} |
| 57 | </td> |
| 58 | </tr> |
| 59 | <tr> |
| 60 | <td> |
| 61 | <b>{{'USER' | translate}}:</b> {{(sdnDetails.user)?sdnDetails.user:''}} |
| 62 | </td> |
| 63 | <td> |
| 64 | <b>{{'CREATED' | translate}}:</b> |
| 65 | {{(sdnDetails._admin.created)?this.sharedService.convertEpochTime(sdnDetails._admin.created):''}} |
| 66 | </td> |
| 67 | </tr> |
| 68 | <tr> |
| 69 | <td> |
| 70 | <b>{{'PAGE.SDNCONTROLLER.DPID' | translate}}:</b> {{(sdnDetails.dpid)?sdnDetails.dpid:''}} |
| 71 | </td> |
| 72 | <td> |
| 73 | <b>{{'MODIFIED' | translate}}:</b> |
| 74 | {{(sdnDetails._admin.modified)?this.sharedService.convertEpochTime(sdnDetails._admin.modified):''}} |
| 75 | </td> |
| 76 | </tr> |
| 77 | <tr> |
| 78 | <td colspan="2"> |
| 79 | <b>{{'DEPLOYED' | translate}}</b> <br> |
| 80 | <b>{{'PAGE.SDNCONTROLLER.RO' | translate}}:</b> {{(sdnDetails._admin.deployed.RO)?sdnDetails._admin.deployed.RO:''}} |
| 81 | <br> |
| 82 | </td> |
| 83 | </tr> |
| 84 | </table> |
| 85 | <ng-template #noData>{{'NODATAERROR' | translate}}</ng-template> |
| 86 | </div> |
| 87 | <div class="modal-footer"> |
| 88 | <button (click)="activeModal.close()" class="btn btn-danger">{{'CANCEL' | translate}}</button> |
| 89 | </div> |
| 90 | <app-loader [waitingMessage]="message" *ngIf="isLoadingResults"></app-loader> |