summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2015-08-18Stop old app on reconnectionJason Kölker
Signed-off-by: Jason Kölker <jason@koelker.net> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-18Use system_id from eventJason Kölker
Signed-off-by: Jason Kölker <jason@koelker.net> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-18Handle disconnection during discover_system_idJason Kölker
Signed-off-by: Jason Kölker <jason@koelker.net> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-11test_parser: Add tests generated by packet_data_generator3IWAMOTO Toshihiro
This includes tests for recently added nicira extensions. Signed-off-by: IWAMOTO Toshihiro <iwamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-11Introduce packet_data_generator3IWAMOTO Toshihiro
packet_data_generator3 works as a UNIX domain socket server and executes ovs-ofctl to collect flow_mod packets. Signed-off-by: IWAMOTO Toshihiro <iwamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-11test_parser: prepare for tests with packet_data_generator3IWAMOTO Toshihiro
Be able to specify xid in packet.json files, as data generated by packet_data_generator3 have non-zero xid. Also, give some detail on data mismatch in order to ease debugging. Signed-off-by: IWAMOTO Toshihiro <iwamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-11Add register0 for nicira extensionsIWAMOTO Toshihiro
It was missing in the previous commit. Signed-off-by: IWAMOTO Toshihiro <iwamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-11packet_data_generator2: Add Makefile for GNU environmentYusuke Iwase
The existing Makefile seems to suppose the BSD environment. This patch renames existing Makefile into "Makefile.BSD" and adds "Makefile.GNU" for GNU environment. Usage Example: - For BSD environment $ make -f Makefile.BSD - For GNU environment $ make -f Makefile.GNU Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-10use idle timeout in ofctl to avoid incomplete queryingTakeshi
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-10Python 3: Fix search for bound methodsFadi Moukayed
Signed-off-by: Fadi Moukayed <smfadi@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-10Python 3: Filter out None values returned by getmodule(...) to fix the stack ↵Fadi Moukayed
inspection Signed-off-by: Fadi Moukayed <smfadi@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-08ofproto_v1_5_parser: Add OFPBundleFeaturesStats supportYusuke Iwase
OpenFlow Spec 1.5 introduces bundle features request/reply messages to query a switch about its bundle capabilities. This patch adds bundle features request/reply messages support. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-08ofproto_v1_5_parser: Support new OFPTableFeaturesStats structureYusuke Iwase
OpenFlow Spec 1.5 introduces a new ofp_table_features structures in accordance with table feature request commands for simpler table features updates. This patch fixes OFPTableFeaturesStats class to support the new structure of ofp_table_features. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-08ofproto_v1_5_parser: Add OFPBundlePropTime supportYusuke Iwase
OpenFlow Spec 1.5 introduces ofp_bundle_prop_time property which is used in scheduled bundles. This patch adds ofp_bundle_prop_time property support. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-08test_parser: Add test case for OFP15 bundle_features request/replyYusuke Iwase
TODO: Because Open vSwitch (lib/ofp-util) does not support time scheduled bundles [EXT-340] yet, re-generate the packet data by using packet_data_generator2 when Open vSwitch supports it. Reference: OpenFlow 1.1+ support status of Open vSwitch https://github.com/openvswitch/ovs/blob/master/OPENFLOW-1.1%2B.md Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-08test_parser: Add test case for OFP15 table_features_requestYusuke Iwase
TODO: Because Open vSwitch (lib/ofp-util) does not support Egress Tables [EXT-306] yet, re-generate the packet data by using packet_data_generator2 when Open vSwitch supports it. Reference: OpenFlow 1.1+ support status of Open vSwitch https://github.com/openvswitch/ovs/blob/master/OPENFLOW-1.1%2B.md Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-08ofproto_v1_5_parser: Add OFPBundleFeaturesProp supportYusuke Iwase
OpenFlow Spec 1.5 introduces bundle features properties to indicate the bundle-related features that are supported by the switch. This patch adds bundle features properties support. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-08ofproto_v1_5_parser: Add new table feature properties supportYusuke Iwase
OpenFlow Spec 1.5 introduces new table feature properties as following. enum ofp_table_feature_prop_type { ... OFPTFPT_WRITE_COPYFIELD = 18, /* Write Copy-Field property. */ OFPTFPT_WRITE_COPYFIELD_MISS = 19, /* Write Copy-Field for table-miss. */ OFPTFPT_APPLY_COPYFIELD = 20, /* Apply Copy-Field property. */ OFPTFPT_APPLY_COPYFIELD_MISS = 21, /* Apply Copy-Field for table-miss. */ OFPTFPT_PACKET_TYPES = 22, /* Packet types property. */ ... } This patch adds these properties support. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-03test_parser: Regen OFP15 port_desc request packetMinoru TAKAHASHI
Re-generate the packet data by using packet_data_generator2. (This patch is to complete the TODO of https://github.com/osrg/ryu/commit/b7b8e2fca3afafd51dc0995befc72bf04c70a19c ) Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-03test_parser: Regen OFP15 group_desc request packetMinoru TAKAHASHI
Re-generate the packet data by using packet_data_generator2. (This patch is to complete the TODO of https://github.com/osrg/ryu/commit/d0733220f391d861c110ea76541d98be8f625fc8 ) Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-03test_parser: Add test case for OXS related messages in OF1.5Yusuke Iwase
TODO: Because Open vSwitch (lib/ofp-util) does not support Extensible Flow Entry Statistics [EXT-334] yet, re-generate the packet data by using packet_data_generator2 when Open vSwitch supports it. Reference: OpenFlow 1.1+ support status of Open vSwitch https://github.com/openvswitch/ovs/blob/master/OPENFLOW-1.1%2B.md Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-03ofproto_v1_5_parser: Add OFPFlowDesc supportYusuke Iwase
OpenFlow Spec 1.5 introduce lightweight flow statistics multipart, rename existing flow statistics as flow description. This patch add flow description multipart support. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-03ofproto_v1_5_parser: Fix OFPFlowStats/OFPAggregateStats to use OFPStatsYusuke Iwase
OpenFlow Spec 1.5 introduces OXS into flow statistics multipart and flow aggregate multipart. This patch fixes these multipart to use OXS. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-03ofproto_v1_5_parser: Fix OFPFlowRemoved to use OFPStatsYusuke Iwase
OpenFlow Spec 1.5 introduces OXS into flow removed message. This patch fixes flow removed message to use OXS. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-03ofproto_v1_5_parser: Use b'str' for binary dataYusuke Iwase
Note: ofproto_v1_[034]_parser was done in previous commits. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-03ofproto_v1_5_parser: Use six.binary_type instead of bufferYusuke Iwase
To support Python3, buffer() type need to be replaced with six.binary_type(). Note: ofproto_v1_[0234]_parser was done in previous commits. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-03test_parser: Add test case for OFP15 group_desc replyYusuke Iwase
TODO: Because Open vSwitch (lib/ofp-util) does not support OF1.5 group_desc structure [EXT-350] yet, re-generate the packet data by using packet_data_generator2 when Open vSwitch supports it. Reference: OpenFlow 1.1+ support status of Open vSwitch https://github.com/openvswitch/ovs/blob/master/OPENFLOW-1.1%2B.md Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-03test_parser: Add expected json representations of OF1.5 GroupModYusuke Iwase
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-03packet_data: RegenYusuke Iwase
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-03packet_data_generator2: Generate OF1.5 GroupMod packetsYusuke Iwase
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-03ofproto_v1_5_parser: Support OF1.5 OFPGroupDescStats structureYusuke Iwase
OpenFlow Spec 1.5 adds properties field which is a list of group properties. This patch adds properties field support in group description multipart reply message. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-03ofproto_v1_[345]: Fix backward compatibility for OFPGroupDescStatsYusuke Iwase
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-03ofproto_v1_5_parser: Support OF1.5 OFPGroupMod structureYusuke Iwase
OpenFlow Spec 1.5 adds bucket_id and properties fields. And also introduces command_bucket_id field which indicates Bucket Id used as part of the new commands, OFPGC_INSERT_BUCKET and OFPGC_REMOVE_BUCKET. This patch adds these fields support and fixes the example of usage according to this changes. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-03ofproto_v1_5_parser: Add OFPGroupProp supportYusuke Iwase
OpenFlow Spec 1.5 introduces group property to extend groups. This patch add group property support. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-03ofproto_v1_5_parser: Add OFPGroupBucketProp supportYusuke Iwase
OpenFlow Spec 1.5 introduces group bucket properties to extend group buckets and redefine bucket fields weight, watch_port and watch_group as group bucket properties. This patch adds group bucket properties support and restructures bucket fields. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-03ofproto_v1_5: Fix a typoYusuke Iwase
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-08-03Ryu 3.24FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-07-31ospf: fix serialize() to work with packet.Packet()ISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-07-31of1.5: Multipart METER_CONFIG was renamed to METER_DESCMinoru TAKAHASHI
Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-07-31of1.5: Meter statistics field flow_count was renamed to ref_countMinoru TAKAHASHI
Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-07-31test_parser: Add test case for OFP15 port_desc requestMinoru TAKAHASHI
TODO:Open vSwtich (lib/ofp-util) support OF1.5 port_desc_request, but it has a bug[1]. So, re-generate the packet data by using packet_data_generator2 when Open vSwitch fix the bug. ref: 1) http://openvswitch.org/pipermail/discuss/2015-July/018253.html Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-07-31of1.5: port statistics and port descriptions use a common request formatMinoru TAKAHASHI
Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-07-31test_parser: Add test case for OFP15 group_desc requestMinoru TAKAHASHI
TODO:Open vSwtich (lib/ofp-util) support OF1.5 group_desc_request, but it has a bug[1]. So, re-generate the packet data by using packet_data_generator2 when Open vSwitch fix the bug. ref: 1) http://openvswitch.org/pipermail/discuss/2015-July/018253.html Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-07-31of1.5: group statistics and group descriptions use a common request formatMinoru TAKAHASHI
Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-07-31test_parser: Add test case for OFP15 queue_desc requestMinoru TAKAHASHI
TODO: Because Open vSwitch (lib/ofp-util) does not support queue_desc request, re-generate the packet data by using packet_data_generator2 when Open vSwitch supports it. Reference: OpenFlow 1.1+ support status of Open vSwitch https://github.com/openvswitch/ovs/blob/master/OPENFLOW-1.1%2B.md Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-07-31of1.5: queue statistics and queue descriptions use a common request formatMinoru TAKAHASHI
Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-07-31ofproto_v1_[2345]_parser: Add items method to OFPMatch/OFPStatsYusuke Iwase
iteritems() was renamed as items() to support Python3. In accordance with this change, this patch adds items() into OFPMatch/OFPStats class for convenience. Reported-by: Ed Kiefer <ehk8@cornell.edu> Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-07-30Add OVSDB manager protocol applicationJason Kölker
Allows listening on a socket for OVSDB clients, reacting to their events and modifying their database. Co-Authored-By: Chris Hansen <chris.hansen.career@gmail.com> Co-Authored-By: Ravi Kamachi <ravi.kamachi@rackspace.com> Signed-off-by: Jason Kölker <jason@koelker.net> Signed-off-by: Chris Hansen <chris.hansen.career@gmail.com> Signed-off-by: Ravi Kamachi <ravi.kamachi@rackspace.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2015-07-29OF: send fin/ack in response to fin packetFUJITA Tomonori
Calls socket's close(). Reported-by: Guru Chaitanya Perakam <gperakam@Brocade.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Tested-by: Guru Chaitanya Perakam <gperakam@Brocade.com>
2015-07-25packet_data_generator2: Adopt upgrade of ofputil_packet_inYusuke Iwase
In accordance with the upgrade of ofputil_packet_in structure in OVS libraries, this patch fixes the usage of struct ofputil_packet_in when initializing the flow metadata field. FYI: The appropriate commit on OVS GitHub https://github.com/openvswitch/ovs/commit/50dcbd8ed473210e6d2aa44f28843fb417416397 Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>