summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2012-02-17doc: update osrg/nova, quantum repositoryIsaku Yamahata
Updated the documentation to refer the repository as I updated the repos, github.com/osrg/nova.git and github.com/osrg/quantum.git Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-17setup.py: typo autor -> authorIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-14dpset: pep8Isaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-14ryu/controller/handler: pep8Isaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-14ofproto_parser: pep8Isaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-14ofproto_v1_0_parser: typoIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-14ofproto/ofproto_v1_0_parser: unbreak 0bff34ca87af74b7eb13d9c996fd869172a7f0a4Isaku Yamahata
The c/s 774088c3064604482e0d080f1bee2557ea705836 and 0bff34ca87af74b7eb13d9c996fd869172a7f0a4 have conflicted changes. This patch unbreaks it. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-14doc: sample configuration filesIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-14doc: step-by-step exampleIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-10app/simple_isolation: various improvementIsaku Yamahata
- add drop action when external network id - improve handling port status change Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-10controller/{mac_to_port, network}: add more methods to track port status changeIsaku Yamahata
These methods will be used to handle port status change message. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-10controller/datapath: add a helper function to delete flow entriesIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-09controller/dispatcher: eliminate the use of WeakSetIsaku Yamahata
As weakref.WeakSet is supported by python 2.7+. And RHEL 6.x uses python 2.6.x So avoid weakref.WeakSet by replacing it with WeakValueDictionary which is supported by weakref package from the beginning. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-09fix ofp_event conversion messupMORITA Kazutaka
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-08add cbench applicationFUJITA Tomonori
This simple application does _only_ what cbench expects. As usual, you can use this application in the following way: $ ryu-manager --app_lists ryu.app.cbench.Cbench Currently, this supports only the latency mode. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-05move to the main mode right after sending BARRIERFUJITA Tomonori
We had better to move on to the main state after getting the response of the barrier since it guarantees that the switch is in the known state (all the flows were removed). However, cbench doesn't work because it ignores the barrier. Also, the above "known" state doesn't always work (for example, the secondary controller should not remove all the flows in the case of HA configuration). Let's move on to the main state here for now. I guess that we need API to enable applications to initialize switches in their own ways. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-05fix datapath disconnection cleanupFUJITA Tomonori
After the datapath connection is close, we call gevent.joinall for ev_thr and send_thr greenlets to wait for the completion of them. However, gevent.joinall will block forever since the greenlets sleep. We can put some junk to the queues to wake them but looks like just killing the greenlets is simpler. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-03rest: add '/network' prefix to its pathIsaku Yamahata
Otherwise, no other REST PATH can't be used because any string is interpreted as network id. Later /switches PATH will be used. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-03remove unused members in Datapath classFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-03client: pass http responce when an error occursIsaku Yamahata
Thus the caller can examine error code instead of abort blindly and can provide more informative message. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-03controller: factor out ofp message event from event.pyIsaku Yamahata
Move out ofp msg event from event.py into ofp_event.py Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-03pylint: various fixes for pylintIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-01doc: how to invoke ryu-manager, its options and exampleIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-01app: event dumper applicationIsaku Yamahata
This app dumps events occurred in specified dispatcher. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-01controller/dpset: Introduce datapath enter/leave eventIsaku Yamahata
Introduce DPSet class to track datapath enter/leave and generate events. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-01dispatcher, handler: constantiate dispatcher nameIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-01controller: pass datapath to EventQueue for EventQueueCreate eventIsaku Yamahata
Later dpset is decoupled with EventQueueCreate. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-01dispacher: introduce inheritable handlerIsaku Yamahata
Introduce inheritable handler which inherits during dispatcher change for convenience. Thus, we don't have to watch dispatcher change event and unregister/register. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-01controller/dispatcher: introduce events on event queue itselfIsaku Yamahata
This patch introduces event queue event(event on event queue). And track dispatcher children in order to register callback handler for all children of a given dispatcher. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-01dispatcher: pass name to EventQueue and track all instancesIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-01controller/dispatcher: allow handler that accepts any event typeIsaku Yamahata
This type of handler will be used by event dumper application. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-01-31controller/dispatcher: pylintIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-01-31use 0 dl_{src, dst} for OFPMatchFUJITA Tomonori
Simplify the code a bit. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-01-31move _pack_into and _str_attr to ofproto_parser.pyFUJITA Tomonori
This moves _pack_into and _str_attr helper functions to ofproto_parser.py from ofproto_parser_v1_0.py in order to enable OF 1.2 version parser to use them. They are renamed to msg_pack_into and msg_str_attr respectively. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-01-30xid: improve xid handlingIsaku Yamahata
Generate xid for ofp message instead of always 0. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-01-30ofproto_v1_0: add a constant, MAX_XIDIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-01-30ofproto/ofproto_v1_0_parser: more parsers/serializersIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-01-29ofproto_v1_0_parser: allows 0 as dl_{src, dst} for OFPMatchIsaku Yamahata
When 0 is passed for dl_{src, dst}, it is converted to '\x00' * 6 So when creating OFPMatch with wildcarded dl_{src, dst}, the argument can be simplified to 0 instead of '\x00' * 6. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-01-29lib/mac: add helper function/valuesIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-01-29ofproto/ofproto_v1_0: typo, missing constsIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-01-25move MsgBase class to ofproto_parser.py from ofproto_parser_v1_0.pyFUJITA Tomonori
This moves MsgBase class to ofproto_parser.py from ofproto_parser_v1_0.py in order to enable OF 1.2 version parser to use MsgBase class. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-01-25remove OF version dependence from MsgBase classFUJITA Tomonori
This removes OF 1.0 version dependence from MsgBase class to enable OF 1.2 version parser to use MsgBase class. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-01-24pylint: add a script to run pylint and pylintrcIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-01-24pep8: utils.pyIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-01-24pep8: ryu/ofproto/ofproto_v1_0.pyIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-01-24ryu.conf: eliminate obsolete configIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-01-17Use from gevent.queue import QueueFUJITA Tomonori
For consistency. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-01-17Fix to send OFPT_HELLO with the highest OpenFlow protocol versionFUJITA Tomonori
Preparation for 1.2 support. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-01-04doc: how-l2-segregation-works: update images a bitIsaku Yamahata
Use arrows consistently. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-01-04doc: fix typosIsaku Yamahata
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>