Skip to content

Commit

Permalink
python: Enable flake8 checking of ovs-pipegen.py.
Browse files Browse the repository at this point in the history
Signed-off-by: Russell Bryant <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
  • Loading branch information
russellb committed Mar 14, 2018
1 parent 3bdc457 commit fa4058a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion utilities/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ endif

FLAKE8_PYFILES += utilities/ovs-pcap.in \
utilities/checkpatch.py utilities/ovs-dev.py \
utilities/ovs-tcpdump.in
utilities/ovs-tcpdump.in \
utilities/ovs-pipegen.py

include utilities/bugtool/automake.mk
6 changes: 3 additions & 3 deletions utilities/ovs-pipegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import sys
import textwrap


def flow_str(stage, match, action, priority=32768):
mtd_match = "metadata=%d" % stage
if match:
Expand Down Expand Up @@ -109,11 +110,10 @@ def main():
""" % sys.argv[0])

parser = argparse.ArgumentParser(description=description, epilog=epilog,
formatter_class=\
argparse.RawDescriptionHelpFormatter)
formatter_class=argparse.RawDescriptionHelpFormatter)
parser.add_argument("--size", dest="size", default=1000,
help="Size (rules) of each OpenFlow table.")
args=parser.parse_args()
args = parser.parse_args()

pipeline(int(args.size))

Expand Down

0 comments on commit fa4058a

Please sign in to comment.