-
Notifications
You must be signed in to change notification settings - Fork 5
/
cloudstack.xslt
148 lines (135 loc) · 5.59 KB
/
cloudstack.xslt
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method = "html" omit-xml-declaration="no"/>
<xsl:template match = "listcapabilitiesresponse/capability">
CloudStack Capabilities as reported by the CloudStack API
---------------------------------------------------------
API endpoint Name : <xsl:value-of select = "apiname" />
Report Date : <xsl:value-of select = "reportdate" />
CloudStack Version : <xsl:value-of select="cloudstackversion" />
CloudStack Endpoint Tested : <xsl:value-of select="cloudapiendpoint" />
Security Groups Enabled : <xsl:value-of select="securitygroupsenabled"/>
Supports ELB : <xsl:value-of select="supportELB"/>
Firewall Rule UI Enabled : <xsl:value-of select="firewallRuleUiEnabled"/>
</xsl:template>
<xsl:template match = "listhypervisorsresponse">
Hypervisors : <xsl:value-of select="count" />
----------------------------------------
<xsl:for-each select = "hypervisor">
Hypervisors found : <xsl:value-of select="name" />
</xsl:for-each >
</xsl:template>
<xsl:template match = "listzonesresponse">
Total Zones : <xsl:value-of select="count" />
----------------------------------------
<xsl:for-each select = "zone">
Zone ID : <xsl:value-of select="id" />
Zone Name : <xsl:value-of select="name" />
Network Type : <xsl:value-of select="networktype" />
Sec Groups : <xsl:value-of select="securitygroupsenabled" />
==
</xsl:for-each>
</xsl:template>
<xsl:template match = "listdomainsresponse">
Known Domains <xsl:value-of select = "count" />
-----------------
<xsl:for-each select = "domain" >
ID: <xsl:value-of select="id" />
Name : <xsl:value-of select="name" />
Level : <xsl:value-of select="level" />
Has Child : <xsl:value-of select="haschild" />
==
</xsl:for-each>
</xsl:template>
<xsl:template match = "listnetworksresponse">
Network Configurations
Networks Found <xsl:value-of select = "count" />
-----------------
<xsl:for-each select = "network" >
ID : <xsl:value-of select="id" />
Display : <xsl:value-of select="displaytext" />
Network Name : <xsl:value-of select="networkofferingname" />
Network Avail. : <xsl:value-of select="networkofferingavailability" />
Account : <xsl:value-of select="account" />
Domain Owner : <xsl:value-of select="domain" />
Is Default : <xsl:value-of select="isdefault" />
Is Shared : <xsl:value-of select="isshared" />
Network domain : <xsl:value-of select="networkdomain" />
Sec Groups : <xsl:value-of select="securitygroupenabled" />
Traffic Type : <xsl:value-of select="traffictype" />
Brcast D. Type : <xsl:value-of select="broadcastdomaintype" />
Net. Type : <xsl:value-of select="type" />
==
</xsl:for-each>
<xsl:for-each select = "network/service" >
Service Found: <xsl:value-of select = "name" />
<xsl:for-each select = "capability" >
Capability : <xsl:value-of select = "name" />
Value : <xsl:value-of select = "value" />
</xsl:for-each>
</xsl:for-each>
</xsl:template>
<xsl:template match = "listserviceofferingsresponse">
Service Offerings <xsl:value-of select = "count" />
-----------------
<xsl:for-each select = "serviceoffering" >
ID: <xsl:value-of select="id" />
Name : <xsl:value-of select="name" />
Display : <xsl:value-of select="displaytext" />
CPU Speed : <xsl:value-of select="cpuspeed" />
Memory : <xsl:value-of select="memory" />
Storage : <xsl:value-of select="storagetype" />
HA : <xsl:value-of select="offerha" />
==
</xsl:for-each>
</xsl:template>
<xsl:template match = "listdiskofferingsresponse">
Disk offerings <xsl:value-of select = "count" />
-----------------
<xsl:for-each select = "diskoffering" >
id: <xsl:value-of select="id" />
name : <xsl:value-of select="name" />
display : <xsl:value-of select="displaytext" />
disk size : <xsl:value-of select="disksize" />
==
</xsl:for-each>
</xsl:template>
<xsl:template match = "listnetworkofferingsresponse">
Network offerings <xsl:value-of select = "count" />
-----------------
<xsl:for-each select = "networkoffering" >
id: <xsl:value-of select="id" />
name : <xsl:value-of select="name" />
display : <xsl:value-of select="displaytext" />
traffic : <xsl:value-of select="traffictype" />
is default: <xsl:value-of select="isdefault" />
vlan : <xsl:value-of select="specifyvlan" />
avail : <xsl:value-of select="availability" />
G IP type : <xsl:value-of select="guestiptype" />
Net Rate : <xsl:value-of select="networkrate" />
==
</xsl:for-each>
</xsl:template>
<xsl:template match = "listtemplatesresponse">
Community images found matching name "right"
Images found <xsl:value-of select = "count" />
-----------------
<xsl:for-each select = "template" >
id: <xsl:value-of select="id" />
name : <xsl:value-of select="name" />
display : <xsl:value-of select="displaytext" />
created : <xsl:value-of select="created" />
is public : <xsl:value-of select="ispublic" />
is ready : <xsl:value-of select="isready" />
cross zone: <xsl:value-of select="crossZones" />
OS Name : <xsl:value-of select="ostypename" />
account : <xsl:value-of select="account" />
zone name : <xsl:value-of select="zonename" />
hypervisor: <xsl:value-of select="hypervisor" />
format : <xsl:value-of select="format" />
size : <xsl:value-of select="size" />
checksum : <xsl:value-of select="checksum" />
status : <xsl:value-of select="status" />
==
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>