[occi-wg] OCCI Latest Draft

Sam Johnston samj at samj.net
Tue Jul 7 07:02:37 CDT 2009


On Tue, Jul 7, 2009 at 12:27 PM, <shlomo.swidler at gmail.com> wrote:

> 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.
>

Yeah, why anyone would want two subnets on the same segment I'm not really
sure, but I've seen it done and it doesn't cost much to support.


> Thanks.
>

Note also the reappearance of the vlan tags we discussed at the outset -
basically 802.1q but text based (e.g. "internet" vs "dmz" vs "mylan").

Sam


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


More information about the occi-wg mailing list