Interface TemplateRequestDriver


  • public interface TemplateRequestDriver
    • Method Detail

      • doRequest

        Object doRequest​(org.onosproject.netconf.NetconfSession session,
                         String templateName,
                         Map<String,​Object> templateContext,
                         String baseXPath,
                         QName returnType)
                  throws org.onosproject.netconf.NetconfException
        Executes the named NETCONF template against the specified session, returning the referenced XML node as the specified type.
        Parameters:
        session - NETCONF serssion
        templateName - name of NETCONF request template to execute
        templateContext - variable to values substitutions to be used against templates
        baseXPath - XPath expression to specify the returned document node
        returnType - expected return type of the referenced node
        Returns:
        XML document node referenced by the baseXPath
        Throws:
        org.onosproject.netconf.NetconfException - if any IO, XPath, or NETCONF exception occurs