@zone.setter
    def zone(self, value):
        if self._zone == value:
            return
        old_zone = self._zone
        self._zone = value
        if self.apply_changes:
            if old_zone is not None:
                xpath = pandevice.XPATH_ZONE + "/entry[" \
                                     "@name='%s']/network/layer3/" \
                                     "member[text()='%s']" \
                                     % (old_zone, self.name)
                self.pan_device.xapi.delete(xpath)
            if self._zone is not None:
                xpath = pandevice.XPATH_ZONE + "/entry[@name='%s']/network/layer3" \
                                     % (self._zone,)
                element = "<member>%s</member>" % (self.name,)
                self.pan_device.xapi.set(xpath, element)
dataset/ETHPy150Open PaloAltoNetworks/SplunkforPaloAltoNetworks/bin/lib/pandevice/pandevice/network.py/Interface.zone/original