[Engine-devel] Vm nic active boolean should be converted to status/state=active

Avi Tal atal at redhat.com
Thu Jun 14 07:47:26 UTC 2012



Avi Tal 
Red Hat tlv


----- Original Message -----
> From: "Mike Kolesnik" <mkolesni at redhat.com>
> To: "Avi Tal" <atal at redhat.com>
> Cc: engine-devel at ovirt.org
> Sent: Thursday, June 14, 2012 10:34:32 AM
> Subject: Re: [Engine-devel] Vm nic active boolean should be converted to	status/state=active
> 
> > Hi,
> > I believe we should save the REST API behavior and keep using
> > status
> > object instead of <active>true</active> for vm nics.
> > 
> > We should use:
> > <status>
> >  <state>active<state>
> > </status>
> 
> Active is a binary state, why would we need a multi-state
> representation for it?

The way i see it (as a REST API user) active/deactive are states just like up/down.
If i would like to verify the nic active state i would go to the nic state just as simple as it sound.

I can't see any good reason way defining it different then host state or DataCenter state or even storage state.

> 
> > 
> > 
> > Many rest frameworks works around that <status> object in order to
> > verify element state and we shouldn't change that behavior.
> > 
> > This is true also for hotplug disk
> > 
> > Avi Tal
> > Red Hat tlv
> > 
> > 
> > _______________________________________________
> > Engine-devel mailing list
> > Engine-devel at ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/engine-devel
> > 
> 



More information about the Engine-devel mailing list