def _get_rrd(server, vm_uuid):
 try:
  xml = urllib.urlopen(('%s://%s:%s@%s/vm_rrd?uuid=%s' % (server[0], CONF.xenapi_connection_username, CONF.xenapi_connection_password, server[1], vm_uuid)))
  return xml.read()
 except IOError:
  LOG.exception((_('Unable to obtain RRD XML for VM %(vm_uuid)s with server details: %(server)s.') % locals()))
  return None

def _get_rrd ( server , vm_uuid ) : try : xml = urllib . urlopen ( ( '%s://%s:%s@%s/vm_rrd?uuid=%s' % ( server [ 0 ] , CONF . xenapi_connection_username , CONF . xenapi_connection_password , server [ 1 ] , vm_uuid ) ) ) return xml . read ( ) except IOError : LOG . exception ( ( _ ( 'Unable to obtain RRD XML for VM %(vm_uuid)s with server details: %(server)s.' ) % locals ( ) ) ) return None
return the vm rrd xml as a string .