[occi-wg] OCCI Latest Draft

shlomo.swidler at gmail.com shlomo.swidler at gmail.com
Tue Jul 7 05:27:44 CDT 2009


Ah, got it. The [] designation just indicates that the
occi.network.ipv4 element represents a collection. The specific
addressing mechanism for elements in the collection is
rendering-specific.

Thanks.

On Tue, Jul 7, 2009 at 1:10 PM, Sam Johnston<samj at samj.net> wrote:
> Hi Shlomo,
>
> On Tue, Jul 7, 2009 at 9:49 AM, <shlomo.swidler at gmail.com> wrote:
>>
>> Question about the Network Attributes table:
>>
>> occi.network.ipv4[].gateway
>>
>> Does the [] represent array indexation? If so, are the indexes
>> designated by the occi.network.vlan-id ?
>
> Yes and no (in that order). The 802.1q vlan-id is an optional parameter that
> specifies one way for the virtual network should be connected to the real
> world. The indexes are natural for json and xml but less so for text...
> thinking something like:
>
> TXT:
> occi.network.ipv4[0].gateway = 192.168.0.1
>
> JSON:
> {
>   "occi": {
>     "network": {
>       "ipv4: [
>         { "gateway": "192.168.0.1"
>
> XML:
> <occi>
>   <network>
>     <ipv4>
>         <gateway>192.168.0.1</gateway>
>
> Sam
>
>



More information about the occi-wg mailing list