search for: changecommit

Displaying 3 results from an estimated 3 matches for "changecommit".

2015 Oct 29
2
changeBegin() on python API
Hi, is changeBegin() working on python? I was trying to use the following method: if = conn.interfaceLookupByName("name") if.undefine() I saw that changeBegin() does not commit changes, but i can't use it. -- Ramon Nunes Medeiros Kimchi Developer Linux Technology Center Brazil IBM Systems & Technology Group Phone : +55 19 2132 7878 ramonn@br.ibm.com
2015 Nov 02
1
Re: changeBegin() on python API
...you're on a distro where udev > is used instead, the API will return an error. > Otherwise, this should work: > > if = conn.interfaceLookupByName("name") > if.changeBegin() > if.undefine() > > /* test if the connectivity to the host was not lost */ > > if.changeCommit() I haven't ever used the python bindings for the interface APIs, but if changeBegin is implemented as a method of an interface, that is wrong - virInterfaceChangeBegin() saves all the config for *all* interfaces on the host, so it should instead be a method of the connection. (To be more...
2015 Oct 30
0
Re: changeBegin() on python API
...39;s implemented just for netcf backend. So if you're on a distro where udev is used instead, the API will return an error. Otherwise, this should work: if = conn.interfaceLookupByName("name") if.changeBegin() if.undefine() /* test if the connectivity to the host was not lost */ if.changeCommit() Michal