| 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 | <ng-sidebar-container class="ns-instance-topology-sidebar-container"> |
| 19 | <!-- A sidebar --> |
| 20 | <ng-sidebar [(opened)]="sideBarOpened" position="left"> |
| 21 | <div class="sidebar-header"> |
| 22 | <span class="topology_title" *ngIf="isShowNSDetails">{{'NS' | translate}} {{'VIEW' | translate}}</span> |
| 23 | <span class="topology_title" *ngIf="isShowVLetails">{{'PAGE.TOPOLOGY.VIRTUALLINK' | translate}}</span> |
| 24 | <span class="topology_title" *ngIf="isShowVNFRDetails">{{'PAGE.TOPOLOGY.VNF' | translate}}</span> |
| 25 | </div> |
| 26 | <div class="sidebar-body"> |
| 27 | <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 mb-2" *ngIf="isShowNSDetails && nsInfo"> |
| 28 | <div class="row"> |
| 29 | <div class="col-12 p-0"> |
| 30 | <table class="table table-bordered text-dark custom-table"> |
| 31 | <tr> |
| 32 | <td>{{'NS' | translate}} {{'INSTANCE' | translate}} Id</td> |
| 33 | <td>{{(nsInfo.nsInstanceID)?nsInfo.nsInstanceID:'-'}}</td> |
| 34 | </tr> |
| 35 | <tr> |
| 36 | <td>{{'NSDNAME' | translate}}</td> |
| 37 | <td>{{(nsInfo.nsName)?nsInfo.nsName:'-'}}</td> |
| 38 | </tr> |
| 39 | <tr> |
| 40 | <td>{{'OPERATIONALSTATUS' | translate}}</td> |
| 41 | <td>{{(nsInfo.nsOperationalStatus)?nsInfo.nsOperationalStatus:'-'}}</td> |
| 42 | </tr> |
| 43 | <tr> |
| 44 | <td>{{'CONFIGSTATUS' | translate}}</td> |
| 45 | <td>{{(nsInfo.nsConfigStatus)?nsInfo.nsConfigStatus:'-'}}</td> |
| 46 | </tr> |
| 47 | <tr> |
| 48 | <td>{{'DETAILEDSTATUS' | translate}}</td> |
| 49 | <td>{{(nsInfo.nsDetailedStatus)?nsInfo.nsDetailedStatus:'-'}}</td> |
| 50 | </tr> |
| 51 | <tr> |
| 52 | <td>{{'RESOURCEORCHESTRATOR' | translate}}</td> |
| 53 | <td>{{(nsInfo.nsResourceOrchestrator)?nsInfo.nsResourceOrchestrator:'-'}}</td> |
| 54 | </tr> |
| 55 | </table> |
| 56 | </div> |
| 57 | </div> |
| 58 | </div> |
| 59 | <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 mb-2" *ngIf="isShowVLetails && virtualLink"> |
| 60 | <div class="row"> |
| 61 | <div class="col-12 p-0"> |
| 62 | <table class="table table-bordered text-dark custom-table"> |
| 63 | <tbody> |
| 64 | <tr> |
| 65 | <td>short-name</td> |
| 66 | <td>{{(virtualLink.shortName)?virtualLink.shortName:'-'}}</td> |
| 67 | </tr> |
| 68 | <tr> |
| 69 | <td>Name</td> |
| 70 | <td>{{(virtualLink.name)?virtualLink.name:'-'}}</td> |
| 71 | </tr> |
| 72 | <tr> |
| 73 | <td>Vim network name</td> |
| 74 | <td>{{(virtualLink.vimNetworkName)?virtualLink.vimNetworkName:'-'}}</td> |
| 75 | </tr> |
| 76 | <tr> |
| 77 | <td>Type</td> |
| 78 | <td>{{(virtualLink.type)?virtualLink.type:'-'}}</td> |
| 79 | </tr> |
| 80 | <tr> |
| 81 | <td>Id</td> |
| 82 | <td>{{(virtualLink.id)?virtualLink.id:'-'}}</td> |
| 83 | </tr> |
| 84 | </tbody> |
| 85 | </table> |
| 86 | </div> |
| 87 | </div> |
| 88 | </div> |
| 89 | <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 mb-2" *ngIf="isShowVNFRDetails && vnfr"> |
| 90 | <div class="row"> |
| 91 | <div class="col-12 p-0"> |
| 92 | <table class="table table-bordered text-dark custom-table"> |
| 93 | <tbody> |
| 94 | <tr> |
| 95 | <td>VIM Id</td> |
| 96 | <td>{{(vnfr.vimID)?vnfr.vimID:'-'}}</td> |
| 97 | </tr> |
| 98 | <tr> |
| 99 | <td>_id</td> |
| 100 | <td>{{(vnfr._id)?vnfr._id:'-'}}</td> |
| 101 | </tr> |
| 102 | <tr> |
| 103 | <td>IP</td> |
| 104 | <td>{{(vnfr.ip)?vnfr.ip:'-'}}</td> |
| 105 | </tr> |
| 106 | <tr> |
| 107 | <td>Nsr Id</td> |
| 108 | <td>{{(vnfr.nsrID)?vnfr.nsrID:'-'}}</td> |
| 109 | </tr> |
| 110 | <tr> |
| 111 | <td>Id</td> |
| 112 | <td>{{(vnfr.id)?vnfr.id:'-'}}</td> |
| 113 | </tr> |
| 114 | <tr> |
| 115 | <td>Vnfd Ref</td> |
| 116 | <td>{{(vnfr.vnfdRef)?vnfr.vnfdRef:'-'}}</td> |
| 117 | </tr> |
| 118 | <tr> |
| 119 | <td>Vnfd Id</td> |
| 120 | <td>{{(vnfr.vnfdID)?vnfr.vnfdID:'-'}}</td> |
| 121 | </tr> |
| 122 | <tr> |
| 123 | <td>Member index</td> |
| 124 | <td>{{(vnfr.memberIndex)?vnfr.memberIndex:'-'}}</td> |
| 125 | </tr> |
| 126 | </tbody> |
| 127 | </table> |
| 128 | </div> |
| 129 | </div> |
| 130 | </div> |
| 131 | </div> |
| 132 | </ng-sidebar> |
| 133 | <!-- Page content --> |
| 134 | <div ng-sidebar-content> |
| 135 | <button (click)="toggleSidebar()" class="btn btn-default" placement="right" ngbTooltip="{{'OPEN' | translate }}"> |
| 136 | <i class="fa fa-arrow-right detail-sidebar" aria-hidden="true"></i> |
| 137 | </button> |
| 138 | </div> |
| 139 | </ng-sidebar-container> |
| 140 | <div class="container-fluid text-dark"> |
| 141 | <div class="row ns-instance-form justify-content-end "> |
| 142 | <div class="col-xs-9 col-sm-9 col-md-9 col-lg-9"> |
| 143 | <div class="row"> |
| 144 | <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 pl-0"> |
| 145 | <div class="btn-group list" role="group" aria-label="Basic example"> |
| 146 | <button type="button" class="btn btn-primary topology-btn" (click)="onFreeze()" |
| 147 | [class.pinned]="classApplied" placement="top" container="body" |
| 148 | ngbTooltip="{{(classApplied ? 'UNFREEZE' : 'FREEZE') | translate}}"> |
| 149 | <i class="fas fa-thumbtack"></i> |
| 150 | </button> |
| 151 | </div> |
| 152 | </div> |
| 153 | <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 text-right pr-0 badgegroup"> |
| 154 | <span class="badge badge-primary badge-pill bg-white text-body font-weight-bold"> |
| 155 | <img src="assets/images/VNFD.svg" class="ns-svg" draggable="false"/> |
| 156 | <br>VNFR</span> |
| 157 | <span class="badge badge-primary badge-pill bg-white text-body font-weight-bold"> |
| 158 | <img src="assets/images/VL.svg" class="ns-svg" draggable="false"/> |
| 159 | <br>VL</span> |
| 160 | <span class="badge badge-primary badge-pill bg-white text-body font-weight-bold"> |
| 161 | <img src="assets/images/CP.svg" class="ns-svg" draggable="false"/> |
| 162 | <br>CP</span> |
| 163 | </div> |
| 164 | </div> |
| 165 | <div class="row border-all"> |
| 166 | <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 svg-container"> |
| 167 | <svg preserveAspectRatio="xMidYMin slice" id="graphContainer" #graphContainer></svg> |
| 168 | </div> |
| 169 | </div> |
| 170 | </div> |
| 171 | </div> |
| 172 | </div> |
| 173 | <app-loader [waitingMessage]="message" *ngIf="isLoadingResults"></app-loader> |