Hi Jan and guys,
I was facing a weird issue when I was rewriting this.
If I start with the <source/> tag, the test fails.
I need to start with <mac address/> tag to work properly.
Test fails:
...
<interface type='network'>
<source network='default'/>
<mac address='52:54:00:e5:48:58'/>
...
Test returns ok:
...
<interface type='network'>
<mac address='52:54:00:e5:48:58'/>
<source network='default'/>
...
In my point of view, both structure means the same thing.
It is happening because virDomainNetDefFormat() generates <mac address/> right
after <interface/> tag.