def set_dns_servers(self, primary, secondary=None):
        self._logger.debug("Set dns-servers: primary:%s secondary:%s" % (primary, secondary))
        xpath = pandevice.XPATH_DEVICECONFIG_SYSTEM + "/dns-setting/servers"
        element = ET.Element("servers")
        if primary:
            element_primary = ET.SubElement(element, "primary")
            element_primary.text = primary
        if secondary:
            element_secondary = ET.SubElement(element, "secondary")
            element_secondary.text = secondary
        self.xapi.edit(xpath, ET.tostring(element))
dataset/ETHPy150Open PaloAltoNetworks/SplunkforPaloAltoNetworks/bin/lib/pandevice/pandevice/base.py/PanDevice.set_dns_servers/original