Matteo Scandolo | 9e9db12 | 2016-02-18 15:28:48 -0800 | [diff] [blame] | 1 | 'use strict'; |
2 | |||||
3 | angular.module('xos.mcordTopology') | ||||
4 | .constant('TopologyElements', { | ||||
5 | nodes: [ | ||||
6 | { | ||||
7 | id: 'fabric1', | ||||
8 | type: 'fabric', | ||||
9 | name: 'fabric1', | ||||
10 | fixed: true, | ||||
11 | x: 1, | ||||
12 | y: 1 | ||||
13 | }, | ||||
14 | { | ||||
15 | id: 'fabric2', | ||||
16 | type: 'fabric', | ||||
17 | name: 'fabric2', | ||||
18 | fixed: true, | ||||
19 | x: 1, | ||||
20 | y: 2 | ||||
21 | }, | ||||
22 | { | ||||
23 | id: 'fabric3', | ||||
24 | type: 'fabric', | ||||
25 | name: 'fabric3', | ||||
26 | fixed: true, | ||||
27 | x: 2, | ||||
28 | y: 1 | ||||
29 | }, | ||||
30 | { | ||||
31 | id: 'fabric4', | ||||
32 | type: 'fabric', | ||||
33 | name: 'fabric4', | ||||
34 | fixed: true, | ||||
35 | x: 2, | ||||
36 | y: 2 | ||||
37 | } | ||||
38 | ], | ||||
39 | links: [ | ||||
40 | { | ||||
41 | source: 'fabric1', | ||||
42 | target: 'fabric2' | ||||
43 | }, | ||||
44 | { | ||||
45 | source: 'fabric1', | ||||
46 | target: 'fabric4' | ||||
47 | }, | ||||
48 | { | ||||
49 | source: 'fabric3', | ||||
50 | target: 'fabric4' | ||||
51 | }, | ||||
52 | { | ||||
53 | source: 'fabric3', | ||||
54 | target: 'fabric2' | ||||
55 | } | ||||
56 | ] | ||||
57 | }) |