<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 10/28/2014 12:32 PM, Anna Giannakou
wrote:<br>
</div>
<blockquote
cite="mid:23881847.15644023.1414513978764.JavaMail.zimbra@inria.fr"
type="cite">
<div style="font-family: times new roman, new york, times, serif;
font-size: 12pt; color: #000000">
<div>Hello,<br>
</div>
<div>I have created an ovs bridge on which i have attached a
port. I would like to connect my vm to that port,so i have
created an xml defining the network.<br>
</div>
<div>The xml is:<br>
</div>
<div><span style="font-family: courier
new,courier,monaco,monospace,sans-serif;"><network></span><br>
<span style="font-family: courier
new,courier,monaco,monospace,sans-serif;">
<name>ovs-snort</name></span><br>
<span style="font-family: courier
new,courier,monaco,monospace,sans-serif;">
<forward mode='bridge'/></span><br>
<span style="font-family: courier
new,courier,monaco,monospace,sans-serif;"> <bridge
name='snort'/></span><br>
<span style="font-family: courier
new,courier,monaco,monospace,sans-serif;">
<virtualport type='openvswitch'/></span><br>
<span style="font-family: courier
new,courier,monaco,monospace,sans-serif;"></network></span></div>
<div><span style="font-family: courier
new,courier,monaco,monospace,sans-serif;"><span
style="font-family: times new roman,new york,times,serif;">but
when i do virsh net-define /tmp/ovsnetwork.xml i get the
error</span><br>
</span></div>
<div><span style="font-family: courier
new,courier,monaco,monospace,sans-serif;">error: XML error:
unexpected virtualport type -1</span></div>
<div><span style="font-family: courier
new,courier,monaco,monospace,sans-serif;"><span
style="font-family: times new roman,new york,times,serif;">My
libvirt version is 1.2.9</span><br>
</span></div>
<br>
</div>
</blockquote>
<br>
I tried virsh net-define of the exact same XML and the network was
defined successfully. How was your libvirt package built, and for
what host platform? It sounds like something went wrong with the
build process.<br>
<br>
(BTW, if you follow kashyap's advice about setting a log destination
and search for "unexpected virtualport type" it would tell us which
function/line number is reporting the error, which might help to
diagnose the problem)<br>
</body>
</html>