def confd_state_upgrade_mode(self, **kwargs):
        """Auto Generated Code
        """
        config = ET.Element("config")
        confd_state = ET.SubElement(config, "confd-state", xmlns="http://tail-f.com/yang/confd-monitoring")
        upgrade_mode = ET.SubElement(confd_state, "upgrade-mode")

        callback = kwargs.pop('callback', self._callback)
        return callback(config)