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 | ***************************************************************************************************/ |
| 5 | var pendingTimeout = 30000; |
| 6 | |
| 7 | /*************************************************************************************************** |
| 8 | CSS names for the pallette of colors used by the topology view |
| 9 | ***************************************************************************************************/ |
| 10 | var colors = [ |
| 11 | 'color1', |
| 12 | 'color2', |
| 13 | 'color3', |
| 14 | 'color4', |
| 15 | 'color7', |
| 16 | 'color8', |
| 17 | 'color9', |
| 18 | // 'color11', |
| 19 | 'color12' |
| 20 | ]; |
Paul Greyson | 3063625 | 2013-04-09 15:22:04 -0700 | [diff] [blame] | 21 | colors.reverse(); |
| 22 | |
| 23 | /*************************************************************************************************** |
| 24 | Widths of each switch type |
| 25 | ***************************************************************************************************/ |
| 26 | var widths = { |
| 27 | edge: 6, |
Paul Greyson | da29317 | 2013-04-11 10:28:26 -0700 | [diff] [blame] | 28 | aggregation: 16, |
| 29 | core: 20 |
Paul Greyson | 3063625 | 2013-04-09 15:22:04 -0700 | [diff] [blame] | 30 | } |