Skip to content

Commit

Permalink
Merge pull request #53 from cgascoig/port_arguments
Browse files Browse the repository at this point in the history
Add port to listen on command line argument to aci-endpoint-tracker-gui
  • Loading branch information
michsmit99 committed Apr 14, 2015
2 parents 05453e1 + 5a165ad commit 2a40c56
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion applications/endpointtracker/aci-endpoint-tracker-gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@ def hello_world():
description = ('Simple application that logs on to the APIC '
'and displays all of the Endpoints.')
creds = Credentials('mysql', description)
creds.add_argument('-p', '--port', help='Port number to listen on', required=False)
args = creds.get()

try:
port=int(args.port)
except:
port=5000

app.run(debug=True)
app.run(debug=True, port=port)

0 comments on commit 2a40c56

Please sign in to comment.