On 04/23/2013 04:33 AM, Fergus Yu wrote:
>> +    logging.debug("Backed up network(s): %s", backup_state)
>> +
>> +    try:
>> +        default_xml = backup['default']
>> +    except (KeyError, AttributeError):
>> +        raise error.TestNAError("Test requires default network to exist")
>> +
>> +    # Prepare default property for test
>> +    default_xml['persistent'] = True
>> +    netname = "default"
>> +    netuuid = default_xml.uuid
>> +    # disable autostart for test firstly
>> +    default_xml['active'] = False
>> +
>> +    # reopen it after command is been executed
>> +    del default_xml
> 
> Oh, No, no, no, It has effected on default network!

Sorry, I don't quite understand (or maybe there is bug).  To be sure,
you are saying 'del default_xml' changes something on default network?

Is there NetworkXML.__del__() somewhere I don't know about?

My understanding is this should only drop the name 'default_xml' from
the local namespace, it should not change anything on default network.
If it does, I think this is a bug!

-- 
Chris Evich, RHCA, RHCE, RHCDS, RHCSS
Quality Assurance Engineer
e-mail: cevich + `@' + redhat.com o: 1-888-RED-HAT1 x44214