def set_hostname(self, hostname):
        self._logger.debug("Set hostname: %s" % (hostname,))
        self.set_config_changed()
        xpath = pandevice.XPATH_DEVICECONFIG_SYSTEM
        self.xapi.set(xpath, "<hostname>%s</hostname>" % (hostname,))
dataset/ETHPy150Open PaloAltoNetworks/SplunkforPaloAltoNetworks/bin/lib/pandevice/pandevice/base.py/PanDevice.set_hostname/original