blob: c38239d9797a6fbc4357a860deeef749d79a64ec [file] [log] [blame]
Matteo Scandolo9e9db122016-02-18 15:28:48 -08001'use strict';
2
3angular.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 }
Matteo Scandolo05b27442016-02-23 10:02:01 -080056 ],
57 icons: {
58 switch: `M10,20a10,10,0,0,1,10-10h70a10,10,0,0,1,10,10v70a10,10,
59 0,0,1-10,10h-70a10,10,0,0,1-10-10zM60,26l12,0,0-8,18,13-18,13,0
60 -8-12,0zM60,60l12,0,0-8,18,13-18,13,0-8-12,0zM50,40l-12,0,0-8
61 -18,13,18,13,0-8,12,0zM50,74l-12,0,0-8-18,13,18,13,0-8,12,0z`,
62 }
Matteo Scandolo9e9db122016-02-18 15:28:48 -080063})