Hi Devs,
In the CLI, "describe-cartridge" displays data in following format which
doesn't show the network-interfaces or properties defined in the cartridge.
-------------------------------------
> Cartridge Information:
> -------------------------------------
> Type: php
> Category: framework
> Name: php
> Description: php Cartridge
> Version: 7
> Multi-Tenant: false
> Hostname: php.stratos.org
> -------------------------------------
> IaaS Providers:
> -------------------------------------
> +-----------+------------------------------------------------+
> | Type | Image ID |
> +-----------+------------------------------------------------+
> | mock | RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e |
> +-----------+------------------------------------------------+
> | openstack | RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e |
> +-----------+------------------------------------------------+
> -------------------------------------
Instead of displaying the data like below shall we print the details in
JSON format so that users are able to view more information. WDYT ?
{
>
> - "type":"php",
>
>
> - "category":"framework",
>
>
> - "provider":"apache",
>
>
> - "host":"php.stratos.org",
>
>
> - "displayName":"php",
>
>
> - "description":"php Cartridge",
>
>
> - "version":"7",
>
>
> - "multiTenant":false,
>
>
> - "loadBalancingIPType":"private",
>
>
> - "portMapping":[
> 1. {
> - "protocol":"http",
> - "port":80,
> - "proxyPort":8280
> },
> 2. {
> - "protocol":"tcp",
> - "port":22,
> - "proxyPort":8222
> }
> ],
>
>
> - "iaasProvider":[
> 1. {
> - "type":"mock",
> - "imageId":"RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
> - "property":[
> 1. {
> - "name":"instanceType",
> - "value":"RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
> },
> 2. {
> - "name":"keyPair",
> - "value":"reka"
> },
> 3. {
> - "name":"securityGroups",
> - "value":"default"
> }
> ],
> - "networkInterfaces":[
> 1. {
> - "networkUuid":"b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
> }
> ]
> },
> 2. {
> - "type":"openstack",
> - "imageId":"RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
> - "property":[
> 1. {
> - "name":"instanceType",
> - "value":"RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
> },
> 2. {
> - "name":"keyPair",
> - "value":"reka"
> },
> 3. {
> - "name":"securityGroups",
> - "value":"default"
> }
> ],
> - "networkInterfaces":[
> 1. {
> - "networkUuid":"b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
> }
> ]
> }
> ]
>
> }
--
*Thanks and Regards,*
Anuruddha Lanka Liyanarachchi
Software Engineer - WSO2
Mobile : +94 (0) 712762611
Tel : +94 112 145 345
a <[email protected]>[email protected]