Currently, Ryu does not have the parser for Controller-to-Switch
one-way messages, but when testing Actions or Match fields,
OFPFlowMod parser is convenient in order to test them.
This patch implements the parser for OFPFlowMod messages.
Signed-off-by: IWASE Yusuke
---
ryu/ofproto/ofproto_v1_0_
Because ovs-ofctl increments the xid field automatically, the xid
of the generated packets is set to be 0x02.
So, we should specify {"xid": 2} in json data, but when Ryu dumping
json data from message instance, "xid" are omitted and this causes
assertion error in test_parser.py
This patch enables
Signed-off-by: IWASE Yusuke
---
ryu/lib/pcaplib.py | 206 -
1 file changed, 109 insertions(+), 97 deletions(-)
diff --git a/ryu/lib/pcaplib.py b/ryu/lib/pcaplib.py
index 03e0202..b11c0b3 100644
--- a/ryu/lib/pcaplib.py
+++ b/ryu/lib/pcaplib.py
The followings improve pcaplib implementation, add
the test cases and the documentation for pcaplib.
The example of the documentation for pcaplib:
http://ryu-iwase.readthedocs.io/en/pcaplib-adopt_to_python3/library_pcap.html
IWASE Yusuke (3):
pcaplib: Reduce Pylint warnings
test_pcaplib: Ad
Signed-off-by: IWASE Yusuke
---
ryu/tests/packet_data/pcap/big_endian.pcap| Bin 0 -> 78 bytes
ryu/tests/packet_data/pcap/little_endian.pcap | Bin 0 -> 78 bytes
ryu/tests/unit/lib/test_pcaplib.py| 230 ++
3 files changed, 230 insertions(+)
create mode 100
Signed-off-by: IWASE Yusuke
---
doc/source/library.rst | 1 +
doc/source/library_pcap.rst | 27 +++
ryu/lib/pcaplib.py | 113 ++--
3 files changed, 95 insertions(+), 46 deletions(-)
create mode 100644 doc/source/library_pcap.rst
d
Hi,
To process the packet using the flow entries,
you need to output the packet to "OFPP_TABLE" port.
For just forwarding (Not mirroring), please refer to the following.
$ git diff
diff --git a/ryu/app/simple_switch_13.py b/ryu/app/simple_switch_13.py
index 3e7c598..9d3741c 100644
--- a/ryu/app/
Hi,
What dose "reversible" mean?
Does switch have information set by the OFPSetAsync?
If you not check, please check by using the following.
http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html?highlight=OFPSetAsync#ryu.ofproto.ofproto_v1_3_parser.OFPGetAsyncRequest
http://ryu.readthedocs.io
Hi,
I have been trying to run Ryu but I am getting the following error on Ubuntu
16. I have also tried RyuInstallHelper but unfortunately it just worked only
once inside the $ virtualenv ryu_venv environment and next time it started
giving me the same error as without virtualenv ryu_venu. Can y
Hi,
In my RYU controller, I use one thread that repeatedly adds and then deletes
a flow entry for measuring flow setup time. I use event flow removed handler
as mentioned below for knowing when the flow entry is removed.
@set_ev_cls(ofp_event.EventOFPFlowRemoved, MAIN_DISPATCHER)
def flow_remov
10 matches
Mail list logo