summaryrefslogtreecommitdiffstats
path: root/vbd/gui/module/src/main/resources/vpp/views/inventory-detail.tpl.html
blob: a5a5dc5d795825003e2a25a66caf6ef13f73f57f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<div ng-controller="InventoryDetailController">
    <div layout="row" layout-xs="column">
        <!-- Topology -->
        <div class="md-whiteframe-z2" flex="60" layout-margin>
            <md-content layout-padding>
                <h3>Vpp and Interfaces</h3>
                <div id="next-vpp-topo"></div>
            </md-content>
        </div>

        <!-- right aligned detail -->
        <div class="md-sidenav-left md-whiteframe-z2" flex layout-margin>
            <md-content layout-padding>
                <div style="float: left">
                    <h3>VPP Detail</h3>
                </div>
                <div style="float: right">
                    <md-button ng-click="setMainView('inventory')" class="md-raised">Back to VPP List</md-button>
                </div>

                <table class="table table-striped">
                    <tbody>
                    <tr>
                        <td><b>VPP Name</b></td>
                        <td>
                            <md-select ng-model='selectedVpp' placeholder="Select VPP" ng-change="selectVpp(vpp)">
                                <md-option ng-repeat="vpp in vppList" ng-value="vpp">{{vpp.name}}</md-option>
                            </md-select>
                        </td>
                    </tr>
                    <tr>
                        <td><b>IP Address</b></td>
                        <td>{{selectedVpp.ipAddress}}</td>
                    </tr>
                    <tr>
                        <td><b>Port</b></td>
                        <td>{{selectedVpp.port}}</td>
                    </tr>
                    <tr>
                        <td><b>Connection Status</b></td>
                        <td>{{selectedVpp.status}}</td>
                    </tr>
                    </tbody>
                </table>

                <div style="float: left">
                    <h3>VXLAN Tunnel</h3>
                </div>
                <table st-table="displayInterfaceList" st-safe-src="selectedVpp.interfaces" class="table table-striped">
                    <thead>
                    <tr>
                        <th st-sort="name" class="interactive">Name</th>
                        <th st-sort="oper-status" class="interactive" >Oper Status</th>
                        <th st-sort="admin-status" class="interactive">Admin Status</th>
                        <th st-sort="'v3po:vxlan.src'" class="interactive">Source IP</th>
                        <th st-sort="'v3po:vxlan.src'" class="interactive">Destination IP</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="interface in displayInterfaceList | filter: filterGetVxlanIf">
                        <td>{{interface.name}}</td>
                        <td>{{interface['admin-status']}}</td>
                        <td>{{interface['phys-address']}}</td>
                        <td>{{interface['v3po:vxlan'].src}}</td>
                        <td>{{interface['v3po:vxlan'].dst}}</td>
                    </tr>
                    </tbody>
                </table>
            </md-content>
        </div>
    </div>

    <div layout="row" flex="100" layout-margin>
        <!-- interfaces list -->
        <div class="md-whiteframe-z2" flex="100">
            <md-content layout-padding>
                <h3>Interface list</h3>
                <table st-table="displayInterfaceList" st-safe-src="selectedVpp.interfaces" class="table table-striped">
                    <thead>
                        <tr>
                            <th st-sort="name" class="interactive">Name</th>
                            <th st-sort="oper-status" class="interactive" >Oper Status</th>
                            <th st-sort="admin-status" class="interactive">Admin Status</th>
                            <th st-sort="phys-address" class="interactive">MAC Address</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr ng-repeat="interface in displayInterfaceList | filter: filterRemoveVxlanIf">
                            <td>{{interface.name}}</td>
                            <td>{{interface['oper-status']}}</td>
                            <td>{{interface['admin-status']}}</td>
                            <td>{{interface['phys-address']}}</td>
                        </tr>
                    </tbody>
                </table>
            </md-content>
        </div>
    </div>
</div>