blob: 30f42f2b22a5e490daa105038172ced827fc978d [file] [log] [blame]
Paul Greyson7a300822013-04-09 12:57:49 -07001/***************************************************************************************************
2global variables
3***************************************************************************************************/
4
5
6/***************************************************************************************************
7the latest update to the model
8***************************************************************************************************/
9var model;
10
11/***************************************************************************************************
12cached JSON representation of the model. used to detect model changes and update the UI.
13***************************************************************************************************/
14var modelString;
15
16
17/***************************************************************************************************
18the svg element for the topology view
19***************************************************************************************************/
20var svg;
21
22/***************************************************************************************************
23links that were created in the webui but which have not appeared in the links API response yet
24these timeout after pendingTimeout
25***************************************************************************************************/
26var pendingLinks = {};
27
28/***************************************************************************************************
29the flows that are displayed in the selected flow table
30this may include pending flows which have not appeared in the flows API response yet
31***************************************************************************************************/
32var selectedFlows = [];
33
34/***************************************************************************************************
35a mapping from controller name to color used for color coding the topology and ONOS nodes views
36***************************************************************************************************/
37var controllerColorMap = {};