def netconf_session_end_termination_reason(self, **kwargs):
        """Auto Generated Code
        """
        config = ET.Element("config")
        netconf_session_end = ET.SubElement(config, "netconf-session-end", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications")
        termination_reason = ET.SubElement(netconf_session_end, "termination-reason")
        termination_reason.text = kwargs.pop('termination_reason')

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