blob: 236d79a4eeb67580ee16dab4b723bb09e30974a5 [file] [log] [blame]
Paul Greyson7a300822013-04-09 12:57:49 -07001/***************************************************************************************************
2timeout used by controller functions. after the timeout expires the "pending" action
3is removed and the topology view is whatever is reported by the API
4***************************************************************************************************/
Masayoshi Kobayashi0f8e12e2013-06-20 18:12:20 -07005/* var pendingTimeout = 30000; */
6var pendingTimeout = 60000;
Paul Greyson7a300822013-04-09 12:57:49 -07007
8/***************************************************************************************************
9CSS names for the pallette of colors used by the topology view
10***************************************************************************************************/
11var colors = [
12 'color1',
13 'color2',
14 'color3',
15 'color4',
16 'color7',
17 'color8',
18 'color9',
19// 'color11',
20 'color12'
21];
Paul Greyson30636252013-04-09 15:22:04 -070022colors.reverse();
23
24/***************************************************************************************************
25Widths of each switch type
26***************************************************************************************************/
27var widths = {
28 edge: 6,
Paul Greysonda293172013-04-11 10:28:26 -070029 aggregation: 16,
30 core: 20
Masayoshi Kobayashi0f8e12e2013-06-20 18:12:20 -070031}