Thanks Eric. A question in-lined:
On Tue, Mar 6, 2012 at 8:15 AM, Eric Blake <eblake(a)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