xenserver: Factor out XAPI interactions in interface-reconfigure.