17 k8s.plugin.opnfv.org/nfn-network: '{ "type": "ovn4nfv", "interface": [{ "name": "left-pnetwork", "interface": "net0" }, { "name": "dync-net1", "interface": "net1" }]}'
22 image: rkamudhan/netshoot:v1.0
23 imagePullPolicy: IfNotPresent
49 k8s.plugin.opnfv.org/nfn-network: '{ "type": "ovn4nfv", "interface": [{ "name": "dync-net1", "interface": "net0" }, { "name": "dync-net2", "interface": "net1" }]}'
54 image: rkamudhan/netshoot:v1.0
55 imagePullPolicy: IfNotPresent
70 # Always exit on errors.
72 echo "" > /etc/config/network
73 cat > /etc/config/mwan3 <<EOF
74 config globals 'globals'
75 option mmx_mask '0x3F00'
76 option local_source 'lan'
78 eval "networks=$(grep nfn-network /tmp/podinfo/annotations | awk -F '=' '{print $2}')"
79 for net in $(echo -e $networks | jq -c ".interface[]")
81 interface=$(echo $net | jq -r .interface)
82 ipaddr=$(ifconfig $interface | awk '/inet/{print $2}' | cut -f2 -d ":" | awk 'NR==1 {print $1}')
84 cat >> /etc/config/network <<EOF
85 config interface '$vif'
86 option ifname '$interface'
88 option ipaddr '$ipaddr'
89 option netmask '255.255.255.0'
91 cat >> /etc/config/mwan3 <<EOF
92 config interface '$vif'
95 option reliability '2'
98 option failure_latency '1000'
99 option recovery_latency '500'
100 option failure_loss '20'
101 option recovery_loss '5'
111 /etc/init.d/rpcd start
112 /etc/init.d/dnsmasq start
113 /etc/init.d/network start
114 /etc/init.d/odhcpd start
115 /etc/init.d/uhttpd start
116 /etc/init.d/log start
117 /etc/init.d/dropbear start
118 /etc/init.d/mwan3 restart
119 /etc/init.d/firewall restart
120 echo "Entering sleep... (success)"
122 while true; do sleep 100; done
139 progressDeadlineSeconds: 600
153 k8s.plugin.opnfv.org/nfn-network: '{ "type": "ovn4nfv", "interface": [{ "name": "dync-net2", "interface": "net0" }, { "name": "right-pnetwork", "interface": "net1" }]}'
163 - /tmp/sdewan/entrypoint.sh
164 image: integratedcloudnative/openwrt:0.3.0
165 imagePullPolicy: IfNotPresent
173 initialDelaySeconds: 5
183 - mountPath: /tmp/sdewan
186 - mountPath: /tmp/podinfo
189 restartPolicy: Always
198 - path: "annotations"
200 fieldPath: metadata.annotations