<HTML>
<HEAD>
<TITLE>Re: [Openstack] Question on virt interfaces</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Thanks it seems like there should be a backlog of these types of issues.<BR>
Or some talk with the libvirt people so those missing functions can be integrated.<BR>
Having an interface where implementations throw NotSupported still seems odd, and getting the libvirt people to make those missing functions possible seems like a good goal.<BR>
<BR>
On 9/9/11 9:06 AM, "Darrel O'Pry" <<a href="darrel.opry@gmail.com">darrel.opry@gmail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I might also tender a suggestion of a NotSupported error as well. I think you have two states to deal with. There is the case where someone hasn't had time to implement the feature in the driver or event review the implementation, NotImplemented. Then there is a case where the system you're building a driver for simply doesn't support a feature, NotSupported.<BR>
<BR>
<BR>
<BR>
On Fri, Sep 9, 2011 at 11:37 AM, Soren Hansen <<a href="soren@linux2go.dk">soren@linux2go.dk</a>> wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>2011/9/9 Brian Lamar <<a href="brian.lamar@rackspace.com">brian.lamar@rackspace.com</a>>:<BR>
> Yeah, I've had the same issues you seem to be struggling with. Long story short when you're doing what this project is doing and attempting to be flexible with several different diverse implementations you're going to encounter areas where some drivers just don't support things. I feel like this should just go away and then NotImplementedError would be raised as it's not implemented. This was also pointed out by Kei.<BR>
<BR>
This is what I'm doing as I'm going through the virt layer cleaning<BR>
things up. I have a test that calls all the methods and records when<BR>
something raises NotImplementedError. I'll use this data to<BR>
automatically compile a matrix of supported features in the individual<BR>
drivers, but it'll be a while before this actually happens (I need to<BR>
actually call all the various drivers from this test first).<BR>
<FONT COLOR="#888888"><BR>
--<BR>
Soren Hansen        | <a href="http://linux2go.dk/">http://linux2go.dk/</a><BR>
Ubuntu Developer    | <a href="http://www.ubuntu.com/">http://www.ubuntu.com/</a><BR>
OpenStack Developer | <a href="http://www.openstack.org/">http://www.openstack.org/</a><BR>
</FONT><BR>
_______________________________________________<BR>
Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
Post to     : <a href="openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><BR>
Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>