首页 > 解决方案 > 如何在 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 中发现了类似的配置。所以我做到了。但我认为,它不起作用。

我使用的 RPC

如果有人知道如何配置它,你能帮我吗?提前致谢

标签: opendaylight

解决方案


推荐阅读