def netconf_state_sessions_session_in_bad_rpcs(self, **kwargs):
        """Auto Generated Code
        """
        config = ET.Element("config")
        netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
        sessions = ET.SubElement(netconf_state, "sessions")
        session = ET.SubElement(sessions, "session")
        session_id_key = ET.SubElement(session, "session-id")
        session_id_key.text = kwargs.pop('session_id')
        in_bad_rpcs = ET.SubElement(session, "in-bad-rpcs")
        in_bad_rpcs.text = kwargs.pop('in_bad_rpcs')

        callback = kwargs.pop('callback', self._callback)
        return callback(config)
def netconf_state_sessions_session_in_bad_rpcs ( self , ** kwargs ) : config = ET . Element ( "config" ) netconf_state = ET . SubElement ( config , "netconf-state" , xmlns = "urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring" ) sessions = ET . SubElement ( netconf_state , "sessions" ) session = ET . SubElement ( sessions , "session" ) session_id_key = ET . SubElement ( session , "session-id" ) session_id_key . text = kwargs . pop ( 'session_id' ) in_bad_rpcs = ET . SubElement ( session , "in-bad-rpcs" ) in_bad_rpcs . text = kwargs . pop ( 'in_bad_rpcs' ) callback = kwargs . pop ( 'callback' , self . _callback ) return callback ( config )
Auto Generated Code