opendaylight - 如何在 xml 文件中配置 switch-idle-timeout?
问题描述
我正在研究SDN。
在配置中,我可以找到 switch-idle-timeout 参数的配置。
有 3 个文件具有 switch-idle-timeout 或可能性和 1 个 rpc 模块。但是,即使我配置了这些文件,它也不起作用。
这些是我所做的列表。
1.修改文件{文件夹}/etc/opendaylight/karaf/42-openflowplugin-Li.xml中的标签
我修改了这个switch-idle-timeout标签,但它不起作用
<data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
<!-- default OF-switch-connection-provider (port 6633) -->
<module>
<type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:provider:impl">
prefix:openflow-switch-connection-provider-impl
</type>
<name>openflow-switch-connection-provider-default-impl</name>
<port>6633</port>
<!-- Possible transport-protocol options: TCP, TLS, UDP -->
<transport-protocol>TCP</transport-protocol>
<switch-idle-timeout>15000</switch-idle-timeout>
</module>
<!-- default OF-switch-connection-provider (port 6653) -->
<module>
<type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:provider:impl">
prefix:openflow-switch-connection-provider-impl
</type>
<name>openflow-switch-connection-provider-legacy-impl</name>
<port>6653</port>
<!-- Possible transport-protocol options: TCP, TLS, UDP -->
<transport-protocol>TCP</transport-protocol>
<switch-idle-timeout>15000</switch-idle-timeout>
</module>
2. 在 {folder}/etc/opendaylight/datastore/intial/config/defaut-openflow-connection-config.xml , legacy-openflow-connection-config.xml 添加标签
另外,我像这样在上述文件中添加了标签,但它不起作用
<configuration>
<data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
<!-- default OF-switch-connection-provider (port 6633) -->
<module>
<type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:provider:impl">
prefix:openflow-switch-connection-provider-impl
</type>
<name>openflow-switch-connection-provider-default-impl</name>
<port>6633</port>
<!-- Possible transport-protocol options: TCP, TLS, UDP -->
<transport-protocol>TCP</transport-protocol>
<switch-idle-timeout>15000</switch-idle-timeout>
</module>
<!-- default OF-switch-connection-provider (port 6653) -->
<module>
<type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:provider:impl">
prefix:openflow-switch-connection-provider-impl
</type>
<name>openflow-switch-connection-provider-legacy-impl</name>
<port>6653</port>
<!-- Possible transport-protocol options: TCP, TLS, UDP -->
<transport-protocol>TCP</transport-protocol>
<switch-idle-timeout>15000</switch-idle-timeout>
</module>
3. RPC 调用。
我在 apidocs 中发现了类似的配置。所以我做到了。但我认为,它不起作用。
如果有人知道如何配置它,你能帮我吗?提前致谢
解决方案
推荐阅读
- c# - 如何同时生成单位?
- python - PNG TO TFRecord:错误:类型为 numpy.ndarray,但预期为以下之一:字节
- jmeter - Jmeter - 将字符串转换为base64
- c++ - 土壤图像尺寸
- spring-boot - Activiti BPM 任务信息
- objective-c - 无法使用 PDFKit iOS 11 保存 pdf 表单数据
- spock - 如何在 Spring Boot 中使用 testcontainers 正确运行 spock 测试
- python - 如何为 Window 10 Maya 2017 python 编译 python c 扩展?
- python - Python 2.7 - 从字典键值一次执行中在 MySql 中插入多个值
- javascript - 为什么我在 node.. 中运行的这个 .js 文件中遇到 foreach 未定义错误,我该如何解决?