<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
<meta content="MSHTML 6.00.2900.3429" name="GENERATOR">
<style title="owaParaStyle">P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body ocsi="x">
<div dir="ltr"><font face="Tahoma" color="#000000" size="2">Hi, guys.</font></div>
<div dir="ltr"><font face="tahoma" size="2"></font> </div>
<div dir="ltr"><font face="tahoma" size="2">During domain creation from xml like this:</font></div>
<div dir="ltr"><font face="tahoma" size="2"></font> </div>
<div dir="ltr"><font face="tahoma" size="2"><domain type="openvz" id="3005"><br>
                <name>3005</name><br>
                <memory>131072</memory><br>
                <currentMemory>131072</currentMemory><br>
                <vcpu>1</vcpu><br>
                <os><br>
                                <type>exe</type><br>
                </os><br>
                <devices><br>
                                <filesystem type="template"><br>
                                                <source name="altlinux-4.0"/><br>
                                                <target dir="/"/><br>
                                </filesystem><br>
                                <interface type="bridge"><br>
                                                <source bridge="vzrb0"/><br>
                                                <target dev="veth3005.0"/><br>
                                </interface><br>
                </devices><br>
</font></div>
<div dir="ltr"><font face="tahoma" size="2">i get veth3005.0 on a HW node connected to virtual bridge vzbr0 and eth0 inside a container. So that annoying bug with confused <source> and <target> tags seems to be fixed. Thanks for that!</font></div>
<div dir="ltr"> </div>
<div dir="ltr"><font face="tahoma" size="2">But mac generation still seems to be an issue, caz mac of eth0 and veth3005.0 are the same:</font></div>
<div dir="ltr"><font face="tahoma" size="2"></font> </div>
<div dir="ltr">[root@alt-03 ~]# cat /etc/vz/conf/3005.conf | grep NETIF </div>
<div dir="ltr">NETIF="ifname=eth0,bridge=vzbr0,mac=52:54:00:97:72:8E,host_ifname=veth3005.0,host_mac=52:54:00:97:72:8E"<br>
</div>
<div dir="ltr"><font face="times new roman">So when i connect two containers via bridge they cannot "talk" to each other due to macs conflict. Can something be done to improve mac generation behaviour?</font></div>
<div dir="ltr"><font face="times new roman"></font> </div>
<div dir="ltr"><font face="times new roman">Version I use at the moment:</font></div>
<div dir="ltr"><font face="times new roman">[root@alt-03 ~]# rpm -qa | grep libvirt<br>
libvirt-python-0.5.0-alt1<br>
libvirt-0.5.0-alt1<br>
libvirt-devel-0.5.0-alt1<br>
</font></div>
<div dir="ltr"><font face="times new roman"><font face="times new roman">And one more not an OpenVZ-specific question: I am working on a project using python and python API bindings in libvirt. I don't see a python method for
<a id="virNetworkCreateXML" name="virNetworkCreateXML"><code><font color="#566866">virNetworkCreateXML</font></code></a>:</font></font></div>
<div dir="ltr"><font face="times new roman"><font face="times new roman">>>> dir(libvirt.virConnect.networkCreateXML)<br>
Traceback (most recent call last):<br>
  File "<stdin>", line 1, in <module><br>
AttributeError: class virConnect has no attribute 'networkCreateXML'<br>
</font></font></div>
<div dir="ltr"><font face="times new roman"><font face="times new roman"><font face="times new roman">There are two methods for
<a id="virNetworkDefineXML" name="virNetworkDefineXML"><code><font color="#566866">virNetworkDefineXML</font></code></a> and
<a id="virNetworkCreate" name="virNetworkCreate"><code><font color="#566866">virNetworkCreate</font></code></a> separately:</font></div>
</font></font>
<div dir="ltr"><font face="times new roman"><font face="times new roman"><font face="times new roman"></font> </div>
</font></font>
<div dir="ltr"><font face="times new roman">>>> dir(libvirt.virConnect.networkDefineXML)<br>
['__call__', '__class__', '__cmp__', '__delattr__', '__doc__', '__get__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', 'im_class', 'im_func', 'im_self'] </font></div>
<div dir="ltr"><font face="times new roman">>>> dir(libvirt.virNetwork.create)<br>
['__call__', '__class__', '__cmp__', '__delattr__', '__doc__', '__get__', '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', 'im_class', 'im_func', 'im_self']<br>
</font></div>
<div dir="ltr"><font face="times new roman"><font face="times new roman">Is networkCreateXML missed?</font></div>
</font><br>
<hr>
<font face="Arial" color="Gray" size="1">This message (including attachments) is private and confidential. If you have received this message in error, please notify us and remove it from your system.<br>
</font>
</body>
</html>