【问题标题】:ODL flow added but doesn´t making effect已添加 ODL 流但未生效
【发布时间】:2018-04-20 17:26:39
【问题描述】:

我在 mininet 上做了这个拓扑,有 2 个交换机,主机 h1 连接到一个交换机,h2 连接到另一个。

sudo mn --mac --controller,remote,ip=xx.xx.xx.xx --topo=linear,2 --switch=ovsk,datapath=user

使用 Postman 和 ODL,我将此流推送到其中一个交换机,目的是在 h1 ping h2 时推送 MPLS 标签。

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flow xmlns="urn:opendaylight:flow:inventory">
<flow-name>push-mpls-action</flow-name>
<instructions>
<instruction>
    <order>3</order>
    <apply-actions>
        <action>
            <push-mpls-action>
                <ethernet-type>34887</ethernet-type>
            </push-mpls-action>
            <order>0</order>
        </action>
        <action>
            <set-field>
                <protocol-match-fields>
                    <mpls-label>27</mpls-label>
                </protocol-match-fields>
            </set-field>
            <order>1</order>
        </action>
        <action>
            <output-action>
                <output-node-connector>2</output-node-connector>
            </output-action>
            <order>2</order>
        </action>
    </apply-actions>
    </instruction>
</instructions>
<strict>false</strict>
<id>100</id>
<match>
<ethernet-match>
    <ethernet-type>
        <type>2048</type>
    </ethernet-type>
  </ethernet-match>
</match>
<idle-timeout>0</idle-timeout>
<cookie_mask>255</cookie_mask>
<cookie>401</cookie>
<priority>8</priority>
<hard-timeout>0</hard-timeout>
<installHw>false</installHw>
<table_id>0</table_id>
</flow>

post 请求是 201 Created 的,我可以通过 postman GET 请求获取流信息,但是当交换机检测到 IP(ICMP) 消息时,主机仍然 ping 并且没有推送 MPLS 标签。

【问题讨论】:

    标签: mininet opendaylight openvswitch


    【解决方案1】:

    流程是否显示在运营商店中?只需更改“配置” 在您正在执行的 GET 中“操作”以验证流程是否存在。

    是否在 OVS 上配置了流(ovs-vsctl dump-flows ...)?

    【讨论】:

    • 不,我无法通过 ovs-vsctl dump-flows 看到它,也无法看到我是否进行了可操作的 GET。
    • 好的,那是主要问题。您并没有真正使用任何流程对您的交换机进行编程。你需要从这个角度调试它。您的交换机是否已连接?您在 karaf.log 中看到任何线索吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-19
    • 1970-01-01
    • 1970-01-01
    • 2016-06-25
    相关资源
    最近更新 更多