
+ elif curr_cim_rev >= libvirt_cim_child_pool_rev: + nprasd = get_typed_class(options.virt, + 'NetPoolResourceAllocationSettingData') + np_id = 'NetworkPool/%s' % testpool + iname = CIMInstanceName(nprasd, + namespace = 'root/virt', + keybindings = {'InstanceID':np_id}) + logger.info('iname is %s', iname) + nrasd = CIMInstance(nprasd, path = iname, + properties ={ + "Address" : "192.168.0.30", + "Netmask" : "255.255.255.0", + "IPRangeStart" : "192.168.0.31", + "IPRangeEnd" : "192.168.0.57", + "ForwardMode":"route eth1"})
Since this test will be network pool specific, can you also test the other types of network pools (http://libvirt.org/formatnetwork.html#examples)
The NAT based network has to set ForwaredMode by "nat", I'm not sure how to test isolated network? Which properties has to set for this type? Isolated would look like:
properties ={ "Address" : "192.168.0.30", "Netmask" : "255.255.255.0", "IPRangeStart" : "192.168.0.31", "IPRangeEnd" : "192.168.0.57"}