[occi-wg] OCCI Latest Draft

Sam Johnston samj at samj.net
Tue Jul 7 05:10:30 CDT 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ogf.org/pipermail/occi-wg/attachments/20090707/fa3c7139/attachment.html 


More information about the occi-wg mailing list