我能够使用opendaylight模拟器模拟netconf设备.在启动期间,我也提供了yang schemas路径.
但是,当我通过netconf登录设备并发送适用于yang架构的任何RPC请求时,设备没有响应.
虽然如果我的rpc请求中存在任何语法错误,模拟器设备会抛出错误,但它没有响应任何数据.
在opendaylight github页面中提到,对于"set"请求,默认情况下会有OK响应,但我没有看到任何请求的响应.
另外,我没有在运行bash会话的模拟器中看到任何错误日志.
什么是错误的任何想法?
HTML、CSS、JavaScript 等静态内容的更改不会影响页面刷新。它需要一个服务器 - 重新启动以应用更改。但有趣的是,只有前两次更改才会应用于页面重新加载。但是从第三次变化看不到变化,只能看到第二次变化的内容。内容存在于war文件夹中。我需要在 standlone.xml 中更改什么?我尝试了“静态内容”并添加了 jboss 论坛中提到的处理程序,但它似乎不起作用。如果需要更多信息,请告诉我。
当我调用我的多线程perl脚本时,在几个场景中,它会引发一些类似于以下的异常.对不起,我无法分享代码.但如果真的需要我可以尝试构建一个片段(如果确实需要).因为我猜这应该有一些理论上的答案.
*** glibc detected *** perl: double free or corruption (!prev): 0x00007f775401e9a0 ***
======= Backtrace: =========
/lib64/libc.so.6[0x3d74c75e66]
/lib64/libc.so.6[0x3d74c789b3]
/lib64/libc.so.6[0x3d74c7b880]
/lib64/libc.so.6(realloc+0xe5)[0x3d74c7baf5]
/usr/lib/../lib64/libcrypto.so.10(CRYPTO_realloc+0x5f)[0x7f775907bd8f]
/usr/lib/../lib64/libcrypto.so.10(lh_insert+0xee)[0x7f77590f763e]
/usr/lib/../lib64/libcrypto.so.10(OBJ_NAME_add+0x6b)[0x7f775907f12b]
/usr/lib/../lib64/libcrypto.so.10(EVP_add_cipher+0x27)[0x7f7759102387]
/usr/lib/../lib64/libcrypto.so.10(OpenSSL_add_all_ciphers+0x4b7)[0x7f7759106a07]
/usr/lib/../lib64/libcrypto.so.10(OPENSSL_add_all_algorithms_noconf+0xe)[0x7f775910653e]
/usr/local/lib/libssh2.so.1(libssh2_init+0x39)[0x7f77596800b9]
Run Code Online (Sandbox Code Playgroud)
为什么我会收到这样的错误?
我正在使用Thread :: Queue; 使用threads :: shared; 请让我知道你的看法.
下面是线程库版本信息.
use threads; - installed v2.15 (latest - 2.16)
use Thread::Queue; - installed v3.12 (up to date)
use threads::shared; - installed v1.56 (latest - 1.57)
perl - installed v5.26.1
Run Code Online (Sandbox Code Playgroud)
其他图书馆::
use YAML::XS 'LoadFile'; - 0.66 up to date
use Net::Netconf::Manager; - 1.02 up to date …
Run Code Online (Sandbox Code Playgroud) 我在google上做了很多搜索,但是如果XML包含在字符串中,有没有办法解析并获取类似于从文件中提取值的值.
以下是示例脚本:
use strict;
use warnings;
use XML::LibXML;
my $xml = "<family><id>25502</id><father><id>1</id></father><mother><id>2</id></mother><son><id>2</id></son></family>";
my $id = $xml->getElementsByTagName("id")->item(0)->getFirstChild->getData;
print $id;
Run Code Online (Sandbox Code Playgroud)
在此示例中,我无法打印ID.请帮忙.谢谢.
perl ×2
ietf-netconf ×1
jboss ×1
opendaylight ×1
rpc ×1
scripting ×1
simulator ×1
threadpool ×1
undertow ×1
wildfly-8 ×1
xml ×1