Paul Greyson | 7a30082 | 2013-04-09 12:57:49 -0700 | [diff] [blame] | 1 | /*************************************************************************************************** |
| 2 | timeout used by controller functions. after the timeout expires the "pending" action |
| 3 | is removed and the topology view is whatever is reported by the API |
| 4 | ***************************************************************************************************/ |
Masayoshi Kobayashi | 0f8e12e | 2013-06-20 18:12:20 -0700 | [diff] [blame] | 5 | /* var pendingTimeout = 30000; */ |
| 6 | var pendingTimeout = 60000; |
Paul Greyson | 7a30082 | 2013-04-09 12:57:49 -0700 | [diff] [blame] | 7 | |
| 8 | /*************************************************************************************************** |
| 9 | CSS names for the pallette of colors used by the topology view |
| 10 | ***************************************************************************************************/ |
| 11 | var colors = [ |
| 12 | 'color1', |
| 13 | 'color2', |
| 14 | 'color3', |
| 15 | 'color4', |
| 16 | 'color7', |
| 17 | 'color8', |
| 18 | 'color9', |
| 19 | // 'color11', |
| 20 | 'color12' |
| 21 | ]; |
Paul Greyson | 3063625 | 2013-04-09 15:22:04 -0700 | [diff] [blame] | 22 | colors.reverse(); |
| 23 | |
| 24 | /*************************************************************************************************** |
| 25 | Widths of each switch type |
| 26 | ***************************************************************************************************/ |
| 27 | var widths = { |
| 28 | edge: 6, |
Paul Greyson | da29317 | 2013-04-11 10:28:26 -0700 | [diff] [blame] | 29 | aggregation: 16, |
| 30 | core: 20 |
Masayoshi Kobayashi | 0f8e12e | 2013-06-20 18:12:20 -0700 | [diff] [blame] | 31 | } |