diff options
author | Satoshi Fujimoto <satoshi.fujimoto7@gmail.com> | 2017-06-16 11:45:47 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-06-23 12:08:18 +0900 |
commit | d8ae9491dab0824eb88b7e8aad044302d1463f84 (patch) | |
tree | a600daa350a36c1fdc7776c111575bef56f78627 | |
parent | ea23ebdadfc4f629e990c28b1b91c4adc988e2d5 (diff) |
service/ovsdb: Use dict.items() instead of six.iteritems()
Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/services/protocols/ovsdb/api.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/ryu/services/protocols/ovsdb/api.py b/ryu/services/protocols/ovsdb/api.py index 9443d750..21ef5b06 100644 --- a/ryu/services/protocols/ovsdb/api.py +++ b/ryu/services/protocols/ovsdb/api.py @@ -12,13 +12,12 @@ # implied. # See the License for the specific language governing permissions and # limitations under the License. -from ryu.lib import dpid as dpidlib -from ryu.services.protocols.ovsdb import event as ovsdb_event - -import six import uuid +from ryu.lib import dpid as dpidlib +from ryu.services.protocols.ovsdb import event as ovsdb_event + def _get_table_row(table, attr_name, attr_value, tables): sentinel = object() @@ -381,7 +380,7 @@ def set_controller(manager, system_id, bridge_name, controller.connection_mode = ['out-of-band'] if controller_info: - for key, val in six.iteritems(controller_info): + for key, val in controller_info.items(): setattr(controller, key, val) bridge.controller = [controller] @@ -421,11 +420,11 @@ def create_port(manager, system_id, bridge_name, port_info, iface_info=None, port_info['name'] = default_port_name iface = insert(tables['Interface'], iface_insert_uuid) - for key, val in six.iteritems(iface_info): + for key, val in iface_info.items(): setattr(iface, key, val) port = insert(tables['Port'], port_insert_uuid) - for key, val in six.iteritems(port_info): + for key, val in port_info.items(): setattr(port, key, val) port.interfaces = [iface] |