blob: c7cf5bb7f5c73b5d18875a6cce38ba895ad3bbda [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/***************************************************************************************************
Paul Greysone15c4392013-04-09 15:05:31 -070029current links including pending
30***************************************************************************************************/
31var links;
32
33/***************************************************************************************************
34a map from srcDPID => map of dstDPID=>link
35***************************************************************************************************/
36var linkMap;
37
38/***************************************************************************************************
Paul Greyson7a300822013-04-09 12:57:49 -070039the flows that are displayed in the selected flow table
40this may include pending flows which have not appeared in the flows API response yet
41***************************************************************************************************/
42var selectedFlows = [];
43
44/***************************************************************************************************
45a mapping from controller name to color used for color coding the topology and ONOS nodes views
46***************************************************************************************************/
47var controllerColorMap = {};