【问题标题】:How to set the action for a flow in ODL beryllium YANG UI?如何在 ODL beryllium YANG UI 中设置流的动作?
【发布时间】:2016-11-17 03:55:42
【问题描述】:

我尝试通过 DLUX YangUI(使用 Beryllium)向交换机添加流。所以,我去 API opendaylight-iventory rev.2013-08-19 -> config -> nodes -> node ->table -> flow 并开始添加这样的流(预览):http://localhost:8181/restconf/config..。 {“流”:[{“id”:“1”,“匹配”:{“端口”:“2”,“以太网匹配”:{“以太网类型”:{“类型”:“0x0800 " } }, "ip-match": { "ip-dscp": "0x2e" } }, "out port": "1", "flow-name": "mod1", "priority": "30000", "tableid": "2" } ] }

没有子项可以设置 actions=ouput 或类似的东西。每次我在指令“out_port”:“1”上方放置类似的流程时,都会忽略该操作,因为该操作会自动设置为“drop”。

如何在 YangUI 中设置“动作”?

【问题讨论】:

    标签: sdn opendaylight openvswitch ietf-netmod-yang


    【解决方案1】:

    流程动作必须以以下格式嵌入。请参阅此Opendaylight wiki 以获取具有不同匹配标准和操作集的流示例。

    <instructions>
        <instruction>
            <order>0</order>
            <apply-actions>
                <action>
                    <order>0</order>
                    <output-action>
                        <output-node-connector>1</output-node-connector>
                        <max-length>60</max-length>
                    </output-action>
                </action>
            </apply-actions>
        </instruction>
    </instructions>
    

    【讨论】:

    • 谢谢。如何将输出操作设置到流中的多个端口。 ?
    • 一个流可以有多个动作,为了适应它们,重复 部分并使用相应的值。
    • 我这样给是不接受的。 “指令”:{“订单”:“0”,“应用动作”:{“动作”:{“订单”:“0”,“输出动作”:{“输出节点连接器”:“3 ”,“最大长度”:“60”}}“动作”:{“订单”:“0”,“输出动作”:{“输出节点连接器”:“2”,“最大长度” :“60”}}}。你能给我正确的模板吗?
    • 看看这个。 { "order": 0, "output-action": { "max-length": 65535, "output-node-connector": "openflow:224635992578792:1" }}, { "order": 1, "output-动作”:{“最大长度”:65535,“输出节点连接器”:“openflow:224635992578792:10”}}
    • 是的 Mohanraj,很高兴通过 stackoverflow 与您取得联系。
    猜你喜欢
    • 2020-05-29
    • 1970-01-01
    • 1970-01-01
    • 2021-05-24
    • 2021-12-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多