[netcf-devel] define and undefine

hiren panchasara hiren.panchasara at gmail.com
Tue Mar 6 16:39:24 UTC 2012


Thanks Eric. A question in-lined:

On Tue, Mar 6, 2012 at 8:15 AM, Eric Blake <eblake at redhat.com> wrote:

> On 03/06/2012 12:31 AM, hiren panchasara wrote:
> > "define" takes an xmlfile as an argument, is that same as output of
> dumpxml?
>
> Yes, that is one way to get a valid xml file.
>
It seems, it should be able to get all possible values out of any valid xml
file and try to create an interface. But the way dumpxml/our schema
specifies mac address is : <mac address="00:27:13:66:67:63"/> So, the input
should follow that pattern. (i.e and not <mac ="00:27:13:66:67:63"/>. Does
that sound about right?

>
> >
> > And undefine would delete the interface from the configuration
> altogether.
> >
> > Is my understanding correct?
>
> Correct.  And if it helps you understand things, netcf modeled its
> actions after libvirt, so you would get the same thing with 'virsh
> define' when defining the XML for a VM.
>
Great. That's the end goal :-)

Thank you!
Hiren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://fedorahosted.org/pipermail/netcf-devel/attachments/20120306/3dc89199/attachment.html>


More information about the netcf-devel mailing list