summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2012-10-30ryu/app/ofctl_rest: implements ofctl_rest appOHMURA Kei
This patch implements REST API for accessing state. This module helps your debugging and retrieving various statistics. It also supports flow entry pusher to allow users to manually insert flows into switch. - get all switch DPIDs connected to the controller $ curl http://<controller_ip>:8080/stats/switches - get the desc stats $ curl http://<controller_ip>:8080/stats/desc/<dpid> - get flows stats $ curl http://<controller_ip>:8080/stats/flow/<dpid> - get ports stats $ curl http://<controller_ip>:8080/stats/port/<dpid> - add a flow entry $ curl -d '{"dpid": "1", "cookie":"0", "priority":"32768", \ "actions":[{"port":2, "type":"OUTPUT"}], "match":{"in_port":1}}' \ http://<controller_ip>:8080/stats/flowentry - delete all flows of the switch $ curl -X DELETE \ http://<controller_ip>:8080/stats/flowentry/clear/<dpid> Signed-off-by: OHMURA Kei <ohmura.kei@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-10-30ryu/lib/ofctl_v1_0: introduce OF interfaceOHMURA Kei
This patch provides the raw OF interface. We can talk with a switch by using the OF interface via some protocols such as REST. Signed-off-by: OHMURA Kei <ohmura.kei@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-10-23test: add unittests for packet libraryHIYAMA Manabu
Signed-off-by: HIYAMA Manabu <hiyama.manabu@po.ntts.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-10-17silence unhandled event messageFUJITA Tomonori
Users misunderstand that this harmful message is critical. Let's silence it. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-10-12test: add unittests for packet libraryHIYAMA Manabu
Signed-off-by: HIYAMA Manabu <hiyama.manabu@po.ntts.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-10-12packet lib: fix udp header lengthHIYAMA Manabu
Fix the f5d2157 commit. Signed-off-by: HIYAMA Manabu <hiyama.manabu@po.ntts.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-10-12packet lib: fix ipv4 assertion of option fieldHIYAMA Manabu
Signed-off-by: HIYAMA Manabu <hiyama.manabu@po.ntts.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-10-12tools/pip-requires: add routes which is used by wsgi.py moduleIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-10-11packet lib: add unparsed data to Packet.protocolsFUJITA Tomonori
Easy to access to the data that the library can't parse. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-10-06doc: update packet libraryFUJITA Tomonori
Use Packet class iterator feature Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-10-06packet lib: kill find_protocol in Packet classFUJITA Tomonori
- Now easy to know the protocol name and iterate protocols. - find_protocol doesn't handle the case the same protocols are stacked. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-10-06packet lib: set protocol_name in each protocolFUJITA Tomonori
With this, it's easy to know the protocol name. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-10-06packet lib: make Packet class iteratorFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-10-05packet lib: fix icmp echo serializeOHMURA Kei
Fix the merge breakage. Signed-off-by: OHMURA Kei <ohmura.kei@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-10-05packet lib: add mplsFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-10-05test: fix unittests for of parserHIYAMA Manabu
- use bytearray(n) instead of str().zfill(n) - test data are more strictly. Signed-off-by: HIYAMA Manabu <hiyama.manabu@po.ntts.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-10-04packet lib: add icmp.pyOHMURA Kei
Signed-off-by: OHMURA Kei <ohmura.kei@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-10-03ofp_handler: print msg.data in hex format, not raw stringIsaku Yamahata
Printing raw string causes terminal in unexpected mode. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-10-03utils: a helper function to convert byte array into hex stringIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-10-03of1.0: fix/add PortMod messageIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-10-02Removed leading '/' from data_filesFUJITA Tomonori
This was preventing from creating a package on Windows machines where there is no /etc/ folder. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-30Ryu 1.3FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-30Fix zero paddingHIYAMA Manabu
- zfill() is a func of the string to be putting in a '0'. bytearray().zfill(n) -> bytearray(n) - unify notation of zero with other code. '\0' -> '\x00' Signed-off-by: HIYAMA Manabu <hiyama.manabu@po.ntts.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-26packet lib: fix vlan pcp bitshiftHIYAMA Manabu
Signed-off-by: HIYAMA Manabu <hiyama.manabu@po.ntts.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-26packet lib: ipv4 option data supportHIYAMA Manabu
also make checksum handling consistent with the other code. Signed-off-by: HIYAMA Manabu <hiyama.manabu@po.ntts.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-26test: add more of1.2 integration testsHIYAMA Manabu
- some tests need attached port to switch. Signed-off-by: HIYAMA Manabu <hiyama.manabu@po.ntts.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-18packet lib: tcp option supportYAMADA Hideki
Signed-off-by: YAMADA Hideki <yamada.hideki@po.ntts.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-17doc: fix typo in openstack.rstFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-17doc: rearrange top pageFUJITA Tomonori
Rearrange the top page in the following way: - Getting Started - Cloud Integration (OpenStack only for now) - Developing Your App Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-17doc: use README as getting_startedFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-17doc: rename getting_started.rst -> parameters.rstFUJITA Tomonori
The 'getting_started' content overlaps with README. It also includes more advanced information than 'getting_started'. This is preparation for making README 'getting_started'. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-14doc: rearrange openstack docsFUJITA Tomonori
The following docs are about OpenStack: using_with_openstack.rst step_by_step.rst how_l2_segregation_work.rst So let's create 'OpenStack' section in the index and put three under the section. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-14doc: packet libraryFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-12app/simple_isolation: update handler registrationYoshihiro Kaneko
This patch only removes unnecessary methods that didn't accord with the library changed at ae0253a36c8787b645d33eb109636ca009d65f96. Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-10packet lib: fix ipv4 flags bitshiftHiyama Manabu
Fixed flags bitshift. Signed-off-by: HIYAMA Manabu <hiyama.manabu@po.ntts.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-05simplify handler registration coreFUJITA Tomonori
- we don't need register_cls() any more. - register_instance() isn't called with dispatchers argument. - set_ev_cls is always called with dispatchers argument. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-05register OFP handlers via register_instanceFUJITA Tomonori
No reason that we use register_cls() for ofp handlers. We can do with register_instance() with the others do. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-04doc: integrate HACKING.rst into SubmittingPatches.rstFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-04doc: rename SubmittingPatches to SubmittingPatches.rstFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-04doc: convert SubmittingPatches into reST styleFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-03doc: update README.rst about migration from osrg.netFUJITA Tomonori
Migration from osrg.net finished. Update the links in README.rst. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-03doc: set PYTHONPATH for ryu version constantFUJITA Tomonori
Fix the 6cc438c commit breakage. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-03doc: write Ryu applicationFUJITA Tomonori
This is the first doc for someone who wants to write his Ryu applicaiton. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-02doc: use ryu version constantFUJITA Tomonori
- Use ryu version constant instead of setting the version by hand. - update Copyright Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-09-02doc: change Sphinx style to haikuFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-08-31doc: fix the link in README.rstFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-08-31Ryu 1.2FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-08-31remove OFPFlowRemoved and OFPPortStatus handlers in MAIN_DISPATCHERFUJITA Tomonori
I don't see any reason why we need to handle those two OFP messages as differently as the rest. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-08-31remove unnecessary OFPFlowRemoved and OFPBarrierReply handlers in ↵FUJITA Tomonori
CONFIG_DISPATCHER We don't send OFPC_DELETE OFPFlowMod or OFPBarrier during CONFIG_DISPATCHER so we don't need OFPFlowRemoved and OFPBarrierReply. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-08-31remove unnecessary OFPEchoReply handler in dispatchersFUJITA Tomonori
We don't send OFPEchoRequest so there is no point to have OFPEchoReply handler. I think that sending OFPEchoRequest is useful for some cases (e.g. finding problems on the switch quickly). But that should be another helper dispatcher since not all applications need such. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>