tacker/samples/tosca-templates/vnfd/tosca-config-openwrt-vrouter.yaml
Nguyen Hai da9e0e4b9b Modify OpenWRT image & rewrite deployment OpenWRT instruction
This patch adds the customized OpenWRT image that enables DHCP making
the VNF can be ping. Therefore, the continuously respawning of VNF
can be fixed.

This patch also rewrites the instruction of deploying VNF
based on OpenWRT.

Change-Id: Ieb4d98fe374676bad101a6c2965354a9b19ea0a2
Closes-Bug: #1557008
Closes-Bug: #1749243
Closes-Bug: #1709557
2018-02-20 05:52:40 +00:00

47 lines
1.1 KiB
YAML

vdus:
VDU1:
config:
network: |
package network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'net_mgmt'
option ifname 'eth0'
option proto 'dhcp'
config interface 'net0'
option ifname 'eth1'
option proto 'dhcp'
config interface 'net1'
option ifname 'eth2'
option proto 'dhcp'
firewall: |
package firewall
config defaults
option syn_flood '1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
config zone
option name 'net_mgmt'
option network 'net_mgmt'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config zone
option name 'lan'
list network 'net0 net1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'