summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2012-06-19of1.2: Add OXM_OF_ constantsFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Simon Horman <horms@verge.net.au>
2012-06-18of1.2: fix typoOHMURA Kei
Signed-off-by: OHMURA Kei <ohmura.kei@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-06-16of1.2: fix some typosFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-06-16update the official site urlFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-06-16ofproto/nx_match: various minor clean upIsaku Yamahata
- initialize Flow.tun_id - avoid name clash with _set_nxm_headers - eliminated duplicated MFTPSRC - s/len/len_/ to avoid name clash with builtin len() Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-06-16ofproto/nx_match: simplify set_dl_{src, dst}_mask()Isaku Yamahata
Introduce helper function for mac address, and simplify set_dl_{src, dst}_mask() Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-06-15of1.2: add MAX_XID constantFUJITA Tomonori
MAX_XID is the value that Ryu chooses. It not in the spec. So I tried to move it out of ofproto_v1.2.py in the commit 500c744f9610e8a5ff05b6bb8a997b27e5c7f5ee. However, I forgot to add it to somewhere. I'm not sure where is the best place for it so let's add it to ofproto_v1.2.py for now. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-06-15update setup.py for PyPIFUJITA Tomonori
Add classifiers. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-06-12nxm: add NXM_OF_ICMP_TYPE and NXM_OF_ICMP_ICMP_CODE supportFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Simon Horman <horms@verge.net.au>
2012-06-12nxm: add NXM_OF_IP_SRC and NXM_OF_IP_DST supportFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Simon Horman <horms@verge.net.au>
2012-06-12nxm: add NXM_NX_ARP_* supportFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Simon Horman <horms@verge.net.au>
2012-06-12nxm: add NXM_OF_TCP_* and NXM_OF_UDP_* supportFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Simon Horman <horms@verge.net.au>
2012-06-12nxm: add NXM_OF_ETH_SRC_W supportFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Simon Horman <horms@verge.net.au>
2012-06-12nxm: support arbitrary dl_dst masksFUJITA Tomonori
OVS 1.8 and later supports arbitrary dl_dst masks. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Simon Horman <horms@verge.net.au>
2012-06-12nxm: add NXM_OF_IP_PROTO supportFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Tested-by: Simon Horman <horms@verge.net.au>
2012-06-12nxm: add NXM_NX_IP_TTL supportFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Simon Horman <horms@verge.net.au>
2012-06-12of1.2: cleanup and updateFUJITA Tomonori
- adds missing definitions - reorder definitions in the spec order Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-06-11nxm: add NXM_OF_VLAN_TCI supportFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Simon Horman <horms@verge.net.au
2012-06-09kill unused function in utils.pyFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Isaku Yamahata <yamahata@valinux.co.jp>
2012-06-09support commandline application initializationFUJITA Tomonori
You can run your Ryu applicaiton in the following way: $ ryu-manager yourapp.py Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Isaku Yamahata <yamahata@valinux.co.jp>
2012-06-09Pass AppManager module name instead of class nameFUJITA Tomonori
RyuApp class is used as a base class for Ryu network application. So let's pass Ryu application module name instead of class name. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Isaku Yamahata <yamahata@valinux.co.jp>
2012-06-08Make clear that ryu supports all the NX actionsFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-06-08Add Nicira Extension NXAST_LEARN supportFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-06-07Add Nicira Extension NXT_SET_ASYNC_CONFIG supportFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Isaku Yamahata <yamahata@valinux.co.jp> Reviewed-by: Simon Horman <horms@verge.net.au>
2012-06-07Add Nicira Extension NXT_FLOW_AGE supportFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Isaku Yamahata <yamahata@valinux.co.jp> Reviewed-by: Simon Horman <horms@verge.net.au>
2012-06-07Add Nicira Extension NXT_PACKET_IN supportFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Simon Horman <horms@verge.net.au>
2012-06-07Add Nicira Extension NXT_SET_PACKET_IN_FORMAT supportFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Isaku Yamahata <yamahata@valinux.co.jp> Reviewed-by: Simon Horman <horms@verge.net.au>
2012-06-07Add Nicira Extension NXT_FLOW_REMOVED supportFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Isaku Yamahata <yamahata@valinux.co.jp> Reviewed-by: Simon Horman <horms@verge.net.au>
2012-06-07rename NXMatch parse method to parserFUJITA Tomonori
We use 'parser' method name to interpret on-wire data format. Let's be consistent. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Isaku Yamahata <yamahata@valinux.co.jp> Reviewed-by: Simon Horman <horms@verge.net.au>
2012-06-06update setup.py and setup.cfg for better packagingFUJITA Tomonori
Note that now ryu uses /etc/ryu/ryu.conf. The previous install path (/usr/etc/ryu/ryu.conf) doesn't fit to FHS. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-06-05doc: update the requirement in READMEFUJITA Tomonori
Add WebOb and Routes. Also use pip names. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-06-04Replace wsapiFUJITA Tomonori
Ryu uses NOX's code based on twisted for web service. It's much cleaner to use webob since Ryu doesn't use twisted framework. Let's give up the NOX compatibility (incomplete) and go with the cleaner code. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Isaku Yamahata <yamahata@valinux.co.jp>
2012-06-04add Nicira Extension NXAST_NOTE supportFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-06-04add Nicira Extension NXAST_DEC_TTL supportFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-06-04add Nicira Extension NXAST_FIN_TIMEOUT supportFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-06-04add Nicira Extension NXAST_CONTROLLER supportFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-06-04Add Nicira Extension NXT_SET_CONTROLLER_ID supportFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-06-04silence pep8 warningFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-06-03fix NX_ACTION_HEADER pack string and sizeFUJITA Tomonori
also fix its unittest. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-06-03don't close connection when getting OFPT_ERROR_MSGFUJITA Tomonori
It's a really bad idea to close a connection with a switch when getting OFPT_ERROR_MSG. For example, ryu should continue to run about 'Request was not understood' type error because ryu doesn't know what request types the switch supports. Let applications catch OFPT_ERROR_MSG and do whatever they want. The core should not do anything. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-06-02rename OFPGetSwitchConfig to OFPGetConfigReply classFUJITA Tomonori
We use OFPT_* names for class names. So 'OFPGetConfigReply' looks more appropriate for OFPT_GET_CONFIG_REPLY. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Simon Horman <horms@verge.net.au>
2012-06-02discard sample/test_simple_switch because of unittest failFUJITA Tomonori
unittest crashes on commit e5e4b8442: ERROR: testInit (ryu.tests.unit.sample.test_simple_switch.TestSimpleSwitch) Traceback (most recent call last): File "/var/lib/jenkins/jobs/ryu-test-upstream/workspace/ryu/tests/unit/sample/test_simple_switch.py", line 20, in testInit ss = SimpleSwitch() File "/var/lib/jenkins/jobs/ryu-test-upstream/workspace/ryu/app/simple_switch.py", line 44, in __init__ self.mac2port = kwargs['mac2port'] KeyError: 'mac2port' The simple_switch unittest doesn't test anything anyway so let's remove it for now. This also fixes a pip8 error of simple_switch.py that the commit e5e4b8442 added. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-06-01test: add NTT copyright to unittest filesFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-06-01app/simple_switch: fix commit e5e4b844250d36788f9b1bf71cfd36a6e14d5315 ↵FUJITA Tomonori
regression Traceback (most recent call last): File "bin/ryu-manager", line 71, in <module> main() File "bin/ryu-manager", line 53, in main app_mgr.instantiate_apps(**contexts) File "/Users/fujita/git/ryu/ryu/base/app_manager.py", line 102, in instantiate_apps app = cls(*args, **kwargs) File "/Users/fujita/git/ryu/ryu/app/simple_switch.py", line 44, in __init__ self.mac2port = kwargs['mac2port'] KeyError: 'mac2port' Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-05-30ryu/app: convert existing application to new style ryu applicationIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-05-30base/app_manager: introduce application contextIsaku Yamahata
The ryu-manager creates structures which applications share. Currently it is hard-coded in ryu-managers. Concretely network.Network and dpset.DPSet. It is difficult to maintain the code appropriately by hand. When the application is changed or new application comes in, ryu-manager also must be updated. So introduce the notion of application context so that application manager can determine what structures applications want to share and create them. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-05-28add NXT_ROLE_REPLY supportFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-05-28Add Switch to Controller Nicira extension message supportFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-05-28Add Switch to Controller Vendor message supportFUJITA Tomonori
This enabls a vendor to register vendor's specific parser to handle Switch to Controller Vendor messages. An object that vendor's parser returns is placed at msg.data. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-05-28test: add more unittestsFUJITA Tomonori
* MsgBase set_xid * of1.0 - NXActionSetQueue - NXActionPopQueue - NXActionExit - NXTRoleRequest - NXActionAutopath * of1.2 msg_parser Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>