mininet / mininet

Emulator for rapid prototyping of Software Defined Networks
https://mininet.org
BSD 3-Clause "New" or "Revised" License
5.41k stars 1.76k forks source link

mininet> dpctl dump-flows mismatch with OvS 2.9.0 #846

Open LaochMumhain opened 5 years ago

LaochMumhain commented 5 years ago

Mininet uses GitHub issues for bug reports and feature requests only. These issues can be viewed at bugs.mininet.org

If you have a question that is not a bug report or a feature request, please use the documentation at docs.mininet.org, the FAQ at faq.mininet.org, and the mininet-discuss mailing list.

For bug reports, please fill in the following information in detail, and also feel free to include additional information such as debug output from mn -v debug, etc. --- Cut Here ---

Expected/Desired Behavior:

mininet> dpctl dump-flows # Would show flows in OvS.

Actual Behavior:

2018-12-03T13:58:10Z|00001|vconn|WARN|unix:/var/run/openvswitch/s1.mgmt: version negotiation failed (we support version 0x01, peer supports version 0x04)
ovs-ofctl: s1: failed to connect to socket (Broken pipe)

Detailed Steps to Reproduce the Behavior:

sudo apt install -y openvswitch-switch
git -C /home/ryu/ clone git://github.com/mininet/mininet
sudo /home/ryu/mininet/util/install.sh -n
sudo mn --version
2.3.0d4

Additional Information:

gabay commented 5 years ago

@LaochMumhain This error means the switch openflow version(0x04) differs from dpctl's version(0x01)

You can explicitly specify the switch's version like this: OpenFlow1.0: sudo mn --switch=ovs,protocols=OpenFlow10 OpenFlow1.3: sudo mn --switch=ovs,protocols=OpenFlow13

You can also specify dpctl's version using the -O option:

mininet> dpctl dump-flows
*** s1 ------------------------------------------------------------------------
2019-01-17T20:41:27Z|00001|vconn|WARN|unix:/var/run/openvswitch/s1.mgmt: version negotiation failed (we support version 0x01, peer supports version 0x04)
ovs-ofctl: s1: failed to connect to socket (Broken pipe)
mininet> dpctl dump-flows -O OpenFlow13
*** s1 ------------------------------------------------------------------------
OFPST_FLOW reply (OF1.3) (xid=0x2):