blob: e2d82e2d02af79947d6b4dcb27b82a69d6e1ebec [file] [log] [blame]
Richard Jankowski461cb972018-04-11 15:36:27 -04001#!/bin/bash
2
3kubectl apply -f k8s/genie-cni-1.8.yml
4
5kubectl apply -f k8s/namespace.yml
6kubectl apply -f k8s/single-node/consul.yml
7kubectl apply -f k8s/single-node/zookeeper.yml
8kubectl apply -f k8s/single-node/kafka.yml
9kubectl apply -f k8s/single-node/fluentd.yml
10
11kubectl apply -f k8s/single-node/vcore_for_consul.yml
12kubectl apply -f k8s/envoy_for_consul.yml
13kubectl apply -f k8s/single-node/vcli.yml
14kubectl apply -f k8s/single-node/ofagent.yml
15kubectl apply -f k8s/single-node/netconf.yml
16
17sudo cat <<EOF > tests/itests/env/tmp-pon0.conf
18{
19 "name": "pon0",
20 "type": "bridge",
21 "bridge": "pon0",
22 "isGateway": true,
23 "ipMask": true,
24 "ipam": {
25 "type": "host-local",
26 "subnet": "10.22.0.0/16",
27 "routes": [
28 { "dst": "0.0.0.0/0" }
29 ]
30 }
31}
32EOF
33
34sudo cp tests/itests/env/tmp-pon0.conf /etc/cni/net.d/20-pon0.conf
35rm tests/itests/env/tmp-pon0.conf
36
37kubectl apply -f k8s/freeradius-config.yml
38kubectl apply -f k8s/freeradius.yml
39kubectl apply -f k8s/olt.yml
40
41# An ONU container creates the pon0 bridge
42kubectl apply -f k8s/onu.yml
43sleep 30
44echo 8 > tests/itests/env/tmp_pon0_group_fwd_mask
45sudo cp tests/itests/env/tmp_pon0_group_fwd_mask /sys/class/net/pon0/bridge/group_fwd_mask
46rm tests/itests/env/tmp_pon0_group_fwd_mask
47
48kubectl apply -f k8s/rg.yml
49sleep 20