Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsecamau committed Sep 28, 2016
1 parent 93f6ea4 commit 5a08145
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/topology_docker_openswitch/openswitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,14 @@ def create_interfaces():
port=str(int(hwport) - 1)),
shell=True
)
logging.info('BM port creation...')
logging.info(out)
re_str = r''''\s*Control utility for runtime P4 table \
manipulation\s*\nRuntimeCmd:\s*\nRuntimeCmd:\s*$''' #noqa
if re.findall(re_str, out, re.MULTILINE) is None:
raise Exception('Control utility for runtime P4 table '
'failed...')
logging.info('BM port creation...')
logging.info(out)
except Exception as error:
raise Exception(
'Failed to map ports with port labels: {}'.format(
Expand Down

0 comments on commit 5a08145

Please sign in to comment.