← Back to team overview

ooi team mailing list archive

Re: JSON Rendering

 

Hi Enol,

Those are great news!  I will wait for it.
In the meantime, I will continue the security group implementation without
taking in account the rendering.

Do not hesitate to ask me for any help with it.

Regards,

Jorge Sevilla,



2016-10-20 6:46 GMT+01:00 Enol Fernández <enol.fernandez@xxxxxx>:

> Dear Jorge,
>
> On 19 October 2016 at 17:40, Jorge Sevilla Cedillo <jorgesece@xxxxxx>
> wrote:
>
>> Dear all,
>>
>> I'm working in the new OCCI feature to manage Security groups. The
>> specification of this new resource requires JSON rendering, to manage the
>> security rules [1].  I have tried to make it by using text protocol, but
>> the json attribute arrives to the server without quotes by using [2].
>>
>> I would like to know if this format is implemented in OOI, or you plan to
>> include it, or there is any way to avoid to use it by using any other
>> supported rendering.
>>
>
> Changes are on their way:
> https://review.openstack.org/#/q/status:open+project:
> openstack/ooi+branch:master+topic:bp/json-rendering
>
> But still pending the final testing and go through the whole specification
> to see if something is missing. I will try to get some time these days to
> get to it and have it merged soon.
>
> You cannot use text rendering because the complex types below are not
> supported.
>
> Regards,
> Enol
>
>
>> [1] "attributes": {"occi.core.title"="OCCI_TEST", "occi.securitygroup.rules":
>> [{"ipversion": "IPv4", "protocol": "tcp", "range": "11.0.0.0/32",
>> "type": "inbound", "port": 443}, {"ipversion": "IPv4", "protocol": "udp",
>> "range": "11.0.0.0/24", "type": "outbound", "port": "8000-9000"}]}
>> [2] 'X-OCCI-Attribute: "occi.core.title"="OCCI_TEST",
>> "occi.securitygroup.rules"="[{'ipversion': 'IPv4', 'protocol': 'tcp',
>> 'range': '11.0.0.0/32', 'type': 'inbound', 'port': '443'}, {'ipversion':
>> 'IPv4', 'protocol': 'udp', 'range': '11.0.0.0/24', 'type': 'outbound',
>> 'port': '8000-9000'}]"
>>
>>
>> I guess, somebody have dealt with it at some point.
>>
>> Any feedback is welcome,
>>
>> All the best,
>>
>> Thank you so much
>>
>> Jorge Sevilla,
>>
>> --
>>
>> Dr. Jorge Sevilla Cedillo
>>
>> LIP  http://www.lip.pt
>> Av. Elias Garcia, 14-1
>> 1000-149
>> Lisboa Portugal
>>
>>
>> --
>> Mailing list: https://launchpad.net/~ooi
>> Post to     : ooi@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~ooi
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Enol Fernández | Cloud Technologist | EGI Foundation
> enol.fernandez@xxxxxx
>



-- 

Dr. Jorge Sevilla Cedillo

LIP  http://www.lip.pt
Av. Elias Garcia, 14-1
1000-149
Lisboa Portugal

References