import java.io.File;
import java.util.Set;
import java.util.concurrent.TimeUnit;
-import org.apache.sshd.server.auth.pubkey.PublickeyAuthenticator;
import org.opendaylight.netconf.api.xml.XmlNetconfConstants;
import org.opendaylight.netconf.auth.AuthProvider;
+import org.opendaylight.netconf.shaded.sshd.server.auth.pubkey.PublickeyAuthenticator;
import org.opendaylight.netconf.test.tool.operations.OperationsCreator;
import org.opendaylight.netconf.test.tool.rpchandler.RpcHandler;
import org.opendaylight.netconf.test.tool.rpchandler.RpcHandlerDefault;
+import org.opendaylight.yangtools.yang.binding.YangModuleInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public static final Set<String> DEFAULT_BASE_CAPABILITIES_EXI = ImmutableSet.of(
XmlNetconfConstants.URN_IETF_PARAMS_NETCONF_BASE_1_0,
XmlNetconfConstants.URN_IETF_PARAMS_NETCONF_BASE_1_1,
- XmlNetconfConstants.URN_IETF_PARAMS_NETCONF_CAPABILITY_EXI_1_0
+ XmlNetconfConstants.URN_IETF_PARAMS_NETCONF_CAPABILITY_EXI_1_0,
+ XmlNetconfConstants.URN_IETF_PARAMS_NETCONF_CAPABILITY_NOTIFICATION_1_0
);
public static final Set<String> DEFAULT_BASE_CAPABILITIES = ImmutableSet.of(
public static final Set<YangResource> DEFAULT_YANG_RESOURCES = ImmutableSet.of(
new YangResource("ietf-netconf-monitoring", "2010-10-04",
"/META-INF/yang/ietf-netconf-monitoring@2010-10-04.yang"),
- new YangResource("ietf-netconf-monitoring-extension", "2013-12-10",
- "/META-INF/yang/ietf-netconf-monitoring-extension@2013-12-10.yang"),
+ new YangResource("odl-netconf-monitoring", "2022-07-18",
+ "/META-INF/yang/odl-netconf-monitoring@2022-07-18.yang"),
new YangResource("ietf-yang-types", "2013-07-15",
"/META-INF/yang/ietf-yang-types@2013-07-15.yang"),
new YangResource("ietf-inet-types", "2013-07-15",
private String ip = "0.0.0.0";
private Set<YangResource> defaultYangResources = DEFAULT_YANG_RESOURCES;
- private Set<String> models;
+ private Set<YangModuleInfo> models;
private Set<String> capabilities = DEFAULT_BASE_CAPABILITIES_EXI;
private RpcHandler rpcHandler = new RpcHandlerDefault();
private OperationsCreator operationsCreator;
this.ip = ip;
}
- public Set<String> getModels() {
+ public Set<YangModuleInfo> getModels() {
return models;
}
- public void setModels(final Set<String> models) {
+ public void setModels(final Set<YangModuleInfo> models) {
this.models = models;
}
@Deprecated
public boolean isXmlConfigurationProvided() {
- return initialConfigXMLFile != null && notificationFile != null;
+ return initialConfigXMLFile != null;
+ }
+
+ @Deprecated
+ public boolean isNotificationsSupported() {
+ return notificationFile != null;
}
@Deprecated