blob: 535c005506a6adda660d38209be2289f2ee1940a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
set -e
. layer-recipes/util.sh
require-layer machine
require-layer dns
export SF_PATH=run
sf.base node start bridge0 '{ module: sf.bridge, configuration: {} }'
sf.base node start sf_net '{ module: sf.eiface, configuration: { inet: "10.2.0.1/24" } }'
sf.base link start l0 sf_net '' bridge0 link0
sf.base node start j0 "$(cat simple/0/conf)"
sf.base node start j1 "$(cat simple/1/conf)"
sf.base link start l1 j0 eth0 j1 eth0
sf.base link start l2 j0 eth1 bridge0 link1
sf.base link start l3 j1 eth1 bridge0 link2
|