【问题标题】:REST API - Error 400 - opendaylightREST API - 错误 400 - opendaylight
【发布时间】:2018-04-17 16:46:35
【问题描述】:

我正在尝试在 ODL 中使用 REST API 添加流,但出现以下错误:

{"errors":{"error":[{"error-type":"protocol","error-tag":"malformed-message","error-message":"错误解析输入:子\在父模式节点中找不到“流”

流程规则是:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flow>
<priority>2</priority>
<flow-name>Foo</flow-name>
<match>
    <ethernet-match>
        <ethernet-type>
            <type>2048</type>
        </ethernet-type>
    </ethernet-match>
    <ipv4-destination>10.0.10.2/24</ipv4-destination>
</match>
<id>1</id>
<table_id>0</table_id>
<instructions>
    <instruction>
        <order>0</order>
        <apply-actions>
            <action>
               <order>0</order>
               <dec-nw-ttl/>
            </action>
        </apply-actions>
    </instruction>
</instructions>
</flow>

有什么想法吗?

【问题讨论】:

    标签: opendaylight


    【解决方案1】:

    流程对我来说是正确的。仅供参考,这里有类似的 我们在上游 ODL 测试中使用的流。

    您正在使用的 REST 调用的 URL 是什么?也许你正在发送 它到一个稍微错误的 URL。

    这是用于推送流的 openflowplugin 用户指南的link。 实际上,现在我看,似乎这正是你所在的地方 把你的流量从。所以,回到你所在的端点的问题 使用。

    【讨论】:

    猜你喜欢
    • 2016-07-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-20
    • 2013-03-12
    • 1970-01-01
    • 2020-10-31
    • 1970-01-01
    相关资源
    最近更新 更多