CLIENT GUI Framework
[vnfsdk/refrepo.git] / portal-catalog / src / main / webapp / catalog / topology.html
1 <!--\r
2 \r
3     Copyright 2016-2017 ZTE Corporation.\r
4 \r
5     Licensed under the Apache License, Version 2.0 (the "License");\r
6     you may not use this file except in compliance with the License.\r
7     You may obtain a copy of the License at\r
8 \r
9         http://www.apache.org/licenses/LICENSE-2.0\r
10 \r
11     Unless required by applicable law or agreed to in writing, software\r
12     distributed under the License is distributed on an "AS IS" BASIS,\r
13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
14     See the License for the specific language governing permissions and\r
15     limitations under the License.\r
16 \r
17 -->\r
18 <div class="container-fluid">\r
19         <div id="networks" style="float:left;display:inline-block">             \r
20                 <div class="networksContainer"> \r
21                         <div class="network" ms-repeat-network="topologyTab.networkTopoDatas">\r
22                                 <div class="name" tooltip="" ms-attr-title="network.name" ms-if="network.name"\r
23                                          ms-click="topologyTab.$showTopo(network.id, network.name)">\r
24                                          <div ms-if="topologyTab.isShowNum" ms-text="network.num" class="badge">0</div>\r
25                                          <span>{{network.name}}</span>\r
26                                 </div>\r
27                                 <div class="subnet" ms-repeat-subnet="network.subnets">                         \r
28                                         <div class="line">\r
29                                                 <div class="vlan" ms-attr-id="subnet.id" ms-css-background-color="topologyTab.$getColor($index+$outer.$index)" ms-attr-title="subnet.name" ms-click="topologyTab.$showTopo(subnet.id, subnet.name)">\r
30                                                         <div ms-if="topologyTab.isShowNum" ms-text="subnet.num" class="badge">0</div>\r
31                                                         <p>{{subnet.name}}</p>\r
32                                                         <p class="cidr" ms-text="topologyTab.$getCidr(subnet.properties)"></p>\r
33                                                 </div>\r
34                                         </div>\r
35                                 </div><!--end repeat network.subnets-->\r
36                         </div><!--end repeat topologyTab.networkTopoDatas-->\r
37                 </div>\r
38         </div>\r
39         <div id="topo" style="float:left;display:inline-block">\r
40                 <div class="row-fluid" data-name="topo_zone">           \r
41                         <div class="bpContainer" ms-each-host="topologyTab.boxTopoDatas">       \r
42                                 <div>\r
43                                 <div class="box" ms-attr-id="host.id">\r
44                                         <div class="piProgress" size="55">                              \r
45                                         <div class="circle">\r
46                                         <i class="gs-node-icon fa fa-desktop" ></i>     \r
47                                         <div ms-if="topologyTab.isShowNum" ms-text="host.num" class="badge">1</div>\r
48                                         </div> \r
49                                         <div class="smallCircle" ms-repeat-cp="host.cp" ms-attr-id="cp.id" ms-title="cp.name" \r
50                                                  ms-click="topologyTab.$showTopo(cp.id,cp.name)" ms-css-top="topologyTab.$getCpTop($index,host.id)">\r
51                                         <i class="gs-cp-icon fa fa-credit-card" ></i>\r
52                                         </div>                          \r
53                                 </div>\r
54                                 <div class="head"  ms-hover="boxHover" tooltip  ms-attr-title="host.name" ms-text="host.name" ms-click="topologyTab.$showTopo(host.id, host.name)">                     \r
55                                 </div>\r
56                                 <div class="holder">\r
57                                         <div class="nest" ms-if="host.vnfdid" ms-click="topologyTab.$showVnfTopo(host.vnfdid)"\r
58                                                  ms-attr-title="topologyTab.vnfTip"><!-- only display nested ns template  -->\r
59                                                 <div class="plus">\r
60                                                         <i class="fa fa-plus" style="color: #3aaeda;"></i>\r
61                                                 </div>\r
62                                         </div>\r
63                                         <div ms-each-box="host.children" ><!-- ngRepeat: node in map track by node.name --> \r
64                                                 <div>            \r
65                                         <div class="box" ms-attr-id="box.id">                                           \r
66                                                         <div class="piProgress" size="55">                     \r
67                                                                 <div class="circle">\r
68                                                                         <i class="gs-node-icon fa fa-cogs"></i>\r
69                                                                         <div ms-if="topologyTab.isShowNum" ms-text="box.num" class="badge">1</div>\r
70                                                                 </div>\r
71                                                                 <div class="smallCircle" ms-repeat-cp="box.cp" ms-attr-id="cp.id" ms-title="cp.name" ms-click="topologyTab.$showTopo(cp.id,cp.name)" ms-css-top="topologyTab.$getCpTop($index,box.id)">\r
72                                                                 <i class="gs-cp-icon fa fa-credit-card" ></i>\r
73                                                                 </div> \r
74                                                 </div>  \r
75                                                                 <div class="head"  ms-hover="boxHover" \r
76                                                                  tooltip="" ms-click="topologyTab.$showTopo(box.id, box.name)" ms-attr-title="box.name" ms-text="box.name"></div> \r
77                                                         <div class="holder" >\r
78                                                                 <div ms-each-app="box.children">\r
79                                                                         <!-- ngRepeat: node in map track by node.name -->\r
80                                                                         <div>\r
81                                                                         <div  class="app" ms-attr-id="app.id"  ms-click="topologyTab.$showTopo(app.id, app.name)" ms-hover="appHover">\r
82                                                                                 <div class="piProgress" size="55">                                              \r
83                                                                                         <div class="circle" >\r
84                                                                                         <i class="gs-node-icon fa fa-cog" ></i>\r
85                                                                                         <div ms-if="topologyTab.isShowNum" ms-text="app.num" class="badge">1</div>          \r
86                                                                                         </div>\r
87                                                                                 </div>\r
88                                                                                 <p tooltip="" ms-attr-id="app.id" ms-attr-title="app.name" ms-text="app.name"></p>\r
89                                                                                 </div>             \r
90                                                                                 </div>\r
91                                                                                 <!-- end ngRepeat: node in map track by node.name -->\r
92                                                                         </div>\r
93                                                         </div><!-- end ngIf: node.isApp == false -->\r
94                                                         </div><!-- end ngRepeat: node in map track by node.name -->\r
95                                                 </div>\r
96                                                 </div>\r
97                                 </div>  \r
98                                 </div>\r
99                                 </div>   \r
100                         </div>\r
101                 </div>\r
102         </div>\r
103         <div>\r
104                 <div class="coordinates">\r
105                         <svg id="svg_vl" width="100%" height="100%" fill="silver">\r
106                                 <g transform="translate(0, 0)" >\r
107                                 </g>\r
108                         </svg>\r
109                 </div>\r
110                 <div class="coordinates" style="z-index:3;">\r
111                         <svg id="svg_vdu" width="100%" height="100%" fill="silver">\r
112                                 <g transform="translate(0, 0)" >\r
113                                 </g>\r
114                                 <defs>\r
115                                 <marker id="arrowhead" viewBox="0 0 20 20" refX="16" refY="10" markerUnits="userSpaceOnUse" markerWidth="16" markerHeight="12" orient="auto" fill="#7A7A7A">\r
116                                 <path d="M 0 0 L 20 10 L 0 20 z"></path>\r
117                                 </marker>\r
118                                 </defs>\r
119                          </svg>\r
120                 </div>\r
121         </div>\r
122 </div>