Package org.onosproject.drivers.netconf
Interface TemplateRequestDriver
-
public interface TemplateRequestDriver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectdoRequest(org.onosproject.netconf.NetconfSession session, String templateName, Map<String,Object> templateContext, String baseXPath, QName returnType)Executes the named NETCONF template against the specified session, returning the referenced XML node as the specified type.
-
-
-
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 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
-
-