I am having an issue. I am building a test case and one step involves adding a 
network to a NIC object. When I perform this step in the UI by navigating from 
Hosts -> hostToAttachNetwork -> Network Interfaces -> Setup Host Networks . And 
I drag the required network to NIC object and press ok, after the operation is 
complete, an event log is registered in the engine.log containing this text: 
"Network changes were saved on host"

When I perform the same step in the automated test case, using the following 
code:

 hostService.setupNetworks().modifiedNetworkAttachments(
                        networkAttachment()
                        .network(
                                network()
                                .id(netToAdd.id())
                                .name(netToAdd.name())
                        )
                        .hostNic(
                                 hostNic()
                                 .id(hsNicId)
                        ))
                .send();

The operation is performed correctly, the network is attached to the 
appropriate NIC, but there is no log registered in the engine.log. 

I am wondering is there a better way to perform the above task that will 
register an event in the log file. Or is it possible that this a bug in the SDK?

Thanks
_______________________________________________
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/devel@ovirt.org/message/S2OEWFITZFH2WJTQKIV6O2RJ7SPP35HN/

Reply via email to