summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
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>
2012-05-25Fix NXActionAutopath parserFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-05-24test: add unittests for of1.2 parserFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-05-24test: add more unittests for of1.0 parserFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-05-24test: add more unittests for of parserFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-05-24Fix OFPFlowRemoved __str__ method typoFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-05-24Fix OFPVendorStats parser methodFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-05-24Fix OFPSwitchFeatures parser (of 1.2)FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-05-24Fix the commit 458042d4032ad52dff93deb0f78d94cadb4f2d37 messupFUJITA Tomonori
Add Nicira Extension NXAST_POP_QUEUE constants Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-05-24Fix the commit eea434b8e45bc8ee91aa02096903a66af898ae35 messupFUJITA Tomonori
Add Nicira Extension NXAST_SET_QUEUE constants Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-05-23Fix OFPFlowStats parserFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>