Add function update_xapi_on

Signed-off-by: John Else <john.else@citrix.com>