[libvirt] [PATCH] openvz: swap <source bridge=...> with <target dev=...>

Anton Protopopov aspsk2 at gmail.com
Thu Oct 2 07:31:36 UTC 2008


Hi.

I rewrite functions taken from vzctl in the new patch, so this:


>
>> Here is the patch, that implements the following behaviour
>>
>> * interface name inside container is automatically generated and equals
>> ethN,
>>    where N is the number of that interface within current domain
>> * mac address of that interface inside container is generated
>> automatically by
>>    function openvzGenerateMac
>> * if <target dev=""> is specified, use it; otherwise, use the default
>> openvz name,
>>    i.e., vethN.M for interface ethM in container with veid N
>> * if <mac address='...'> specified, use it; otherwise, vzctl will generate
>> it automatically
>> * <target dev> and <mac address> are (re)stored (from)to $veid.conf
>>
>
is true, while that:


> the functions openvzGenerateMac and
> openvzGenerateVethName are taken from vzctl sources and slightly changed
> then
>

is not true anymore.

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20081002/113a8895/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt_openvz_ifaces_names_and_macs.patch
Type: application/octet-stream
Size: 6125 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20081002/113a8895/attachment-0001.obj>


More information about the libvir-list mailing list