1160
1160
resp = self._make_plugin_call('agent', 'resetnetwork', instance, '',
1163
def inject_hostname(self, instance, vm_ref, hostname):
1164
1164
"""Inject the hostname of the instance into the xenstore."""
1165
1169
logging.debug(_("injecting hostname to xs for vm: |%s|"), vm_ref)
1166
1170
self._session.call_xenapi_request("VM.add_to_xenstore_data",
1167
1171
(vm_ref, "vm-data/hostname", hostname))