Skip to content

Commit f3c3590

Browse files
author
Michael Smith
committed
Change to reflect database name change. Start Flask in non-debug mode.
1 parent 24d24c5 commit f3c3590

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

applications/endpointtracker/aci-endpoint-tracker-gui.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ def populate_data(mysql_ip, mysql_username, mysql_password):
5353
# Create the MySQL database
5454
cnx = mysql.connect(user=mysql_username, password=mysql_password,
5555
host=mysql_ip,
56-
database='acitoolkit')
56+
database='endpointtracker')
5757
c = cnx.cursor()
58-
c.execute('USE acitoolkit;')
58+
c.execute('USE endpointtracker;')
5959
c.execute('SELECT * FROM endpoints;')
6060

6161
data = ''
@@ -94,4 +94,4 @@ def display_table():
9494
creds = Credentials(['mysql', 'server'], description)
9595
args = creds.get()
9696

97-
app.run(debug=True, host=args.ip, port=int(args.port))
97+
app.run(debug=False, host=args.ip, port=int(args.port))

applications/visualizations/acitoolkit-visualizations.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ def endpoint_epg_tree():
8484

8585
if __name__ == '__main__':
8686
#app.run(debug=True)
87-
app.run(debug=True, host=args.ip, port=int(args.port))
87+
app.run(debug=False, host=args.ip, port=int(args.port))

applications/visualizations/acitoolkitvisualizationslib.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def regenerate_pie_data(MYSQL_USERID, MYSQL_PASSWORD, MYSQL_IP):
3838
cnx = mysql.connect(user=MYSQL_USERID, password=MYSQL_PASSWORD,
3939
host=MYSQL_IP)
4040
c = cnx.cursor()
41-
c.execute('USE acitoolkit;')
41+
c.execute('USE endpointtracker;')
4242
c.execute("SELECT DISTINCT(tenant) FROM endpoints;")
4343

4444
tenants = []
@@ -73,7 +73,7 @@ def get_data_from_db():
7373
password=MYSQL_PASSWORD,
7474
host=MYSQL_IP)
7575
c = cnx.cursor()
76-
c.execute('USE acitoolkit;')
76+
c.execute('USE endpointtracker;')
7777
c.execute("SELECT DISTINCT(tenant) FROM endpoints;")
7878

7979
tenants = {}
@@ -119,9 +119,9 @@ def get_data_from_db():
119119
def regenerate_sunburst_data(MYSQL_USERID, MYSQL_PASSWORD, MYSQL_IP):
120120
cnx = mysql.connect(user=MYSQL_USERID, password=MYSQL_PASSWORD,
121121
host=MYSQL_IP,
122-
database='acitoolkit')
122+
database='endpointtracker')
123123
c = cnx.cursor()
124-
c.execute('USE acitoolkit;')
124+
c.execute('USE endpointtracker;')
125125
query = """select distinct mac,tenant,app,epg from endpoints;"""
126126
c.execute(query)
127127

@@ -179,7 +179,7 @@ def get_data_from_db():
179179
password=MYSQL_PASSWORD,
180180
host=MYSQL_IP)
181181
c = cnx.cursor()
182-
c.execute('USE acitoolkit;')
182+
c.execute('USE endpointtracker;')
183183
c.execute("SELECT DISTINCT(tenant) FROM endpoints;")
184184

185185
tenants = {}

0 commit comments

Comments
 (0)