summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason Kölker <jason@koelker.net>2016-03-29 19:18:24 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-03-30 08:07:23 +0900
commitb88adadec491a7d94599ea60be8c4bcf77c996ca (patch)
treefc99231f77937517daecfdb6bb2ec5a0351dc645
parentb8cb2d22aab1b761e9e2de2df1a93cc60ed60dfa (diff)
lib/ofctl_v1_0: Flake8 Fixes
Signed-off-by: Jason Kölker <jason@koelker.net> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/lib/ofctl_v1_0.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ryu/lib/ofctl_v1_0.py b/ryu/lib/ofctl_v1_0.py
index e75e51a4..7f363052 100644
--- a/ryu/lib/ofctl_v1_0.py
+++ b/ryu/lib/ofctl_v1_0.py
@@ -258,8 +258,8 @@ def match_to_str(m):
def nw_src_to_str(wildcards, addr):
ip = socket.inet_ntoa(struct.pack('!I', addr))
- mask = 32 - ((wildcards & ofproto_v1_0.OFPFW_NW_SRC_MASK)
- >> ofproto_v1_0.OFPFW_NW_SRC_SHIFT)
+ mask = 32 - ((wildcards & ofproto_v1_0.OFPFW_NW_SRC_MASK) >>
+ ofproto_v1_0.OFPFW_NW_SRC_SHIFT)
if mask == 32:
mask = 0
if mask:
@@ -269,8 +269,8 @@ def nw_src_to_str(wildcards, addr):
def nw_dst_to_str(wildcards, addr):
ip = socket.inet_ntoa(struct.pack('!I', addr))
- mask = 32 - ((wildcards & ofproto_v1_0.OFPFW_NW_DST_MASK)
- >> ofproto_v1_0.OFPFW_NW_DST_SHIFT)
+ mask = 32 - ((wildcards & ofproto_v1_0.OFPFW_NW_DST_MASK) >>
+ ofproto_v1_0.OFPFW_NW_DST_SHIFT)
if mask == 32:
mask = 0
if mask: