Package org.onosproject.drivers.netconf
Interface TemplateRequestDriver
-
public interface TemplateRequestDriver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectdoRequest(org.onosproject.netconf.NetconfSession session, java.lang.String templateName, java.util.Map<java.lang.String,java.lang.Object> templateContext, java.lang.String baseXPath, javax.xml.namespace.QName returnType)Executes the named NETCONF template against the specified session, returning the referenced XML node as the specified type.
-
-
-
Method Detail
-
doRequest
java.lang.Object doRequest(org.onosproject.netconf.NetconfSession session, java.lang.String templateName, java.util.Map<java.lang.String,java.lang.Object> templateContext, java.lang.String baseXPath, javax.xml.namespace.QName returnType) throws org.onosproject.netconf.NetconfExceptionExecutes the named NETCONF template against the specified session, returning the referenced XML node as the specified type.- Parameters:
session- NETCONF serssiontemplateName- name of NETCONF request template to executetemplateContext- variable to values substitutions to be used against templatesbaseXPath- XPath expression to specify the returned document nodereturnType- 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
-
-