-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathethernet.yaml
58 lines (57 loc) · 2.55 KB
/
ethernet.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# YAML
#
# Below is a graphical resprentation of the topology specified by this example
#
# [ cloud1 ]
# |
# |
# [ fog1 ]---[ s1 ]---[ s0 ]---[ s2 ]---[ fog2 ]
# | |
# ----------- |
# | | |
# [ dev1 ] [ dev2 ] [ dev3 ]
#
#
# There are 3 types of stationary host nodes supported by the emulator: cloud, fog and device
cloud:
- name: cloud1 # required - specifies the name of the host node
cpu: 0.1 # optional - places a restriction on the amount of cpu (%) available to host
cmd: 'ping -c 10 8.8.8.8' # optional - specifies a command to run on the host node. Hosts can run any command available on the OS
# also accepts a list of commands if more than one is required
fog:
- name: fog1 # required - specifies the name of the host node
cpu: 0.2 # optional - places a restriction on the amount of cpu (%) available to host
cmd: 'ping -c 10 8.8.8.8' # optional - specifies a command to run on the host node. Hosts can run any command available on the OS
# also accepts a list of commands if more than one is required
- name: fog2
device:
- name: dev1 # required - specifies the name of the host node
cpu: 0.01 # optional - places a restriction on the amount of cpu (%) available to host
cmd: 'ping -c 10 8.8.8.8' # optional - specifies a command to run on the host node. Hosts can run any command available on the OS
# also accepts a list of commands if more than one is required
- name: dev2
- name: dev3
switch:
- name: s0 # required - specifies the name of the switch
- name: s1
- name: s2
link:
- node1: cloud1 # required - name of first node in the link
node2: s0 # required - name of second node in the link
bw: 200 # optional - specifies the link bandwidth (Mb). Default is 100
delay: '1ms' # optional - specifies the link delay. Default is 0ms
loss: 0.5 # optional - specifies the link loss rate (%). Default is 0
- node1: fog1
node2: s1
- node1: fog2
node2: s2
- node1: s0
node2: s1
- node1: s0
node2: s2
- node1: s1
node2: dev1
- node1: s1
node2: dev2
- node1: s2
node2: dev3