[virt-tools-list] [virt-manager PATCH] createinterface: set right ip address for ipv6

Chen Hanxiao chen_han_xiao at 126.com
Thu Mar 27 14:02:14 UTC 2014


On 03/27/2014 08:43 PM, Cole Robinson wrote:
> On 03/27/2014 05:15 AM, Chen Hanxiao wrote:
>> We use v4_addr for building ipv6 addr.
>> This patch will use right ip address for ipv6.
>>
>> Signed-off-by: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
>> ---
>>   virtManager/createinterface.py | 7 ++++---
>>   1 file changed, 4 insertions(+), 3 deletions(-)
>>
>> diff --git a/virtManager/createinterface.py b/virtManager/createinterface.py
>> index 77fb6e1..11fc9b2 100644
>> --- a/virtManager/createinterface.py
>> +++ b/virtManager/createinterface.py
>> @@ -818,9 +818,10 @@ class vmmCreateInterface(vmmGObjectUI):
>>                   if not ipv6.dhcp:
>>                       if v6_gate:
>>                           ipv6.gateway = v6_gate
>> -                    addr, prefix = build_ip(v4_addr)
>> -                    if addr:
>> -                        ipv6.add_ip(addr, prefix)
>> +                    for v6_addr in v6_addrlist:
>> +                        addr, prefix = build_ip(v6_addr)
>> +                        if addr:
>> +                            ipv6.add_ip(addr, prefix)
>>   
>>           return [is_manual, copy_name, ipv4, ipv6, proto_xml]
>>   
>>
> ACK
>
> - Cole

Thanks, pushed.

-Chen
>
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list
>





More information about the virt-tools-list mailing list