Add node network interface type manual

The install guide uses a network interface of type "manual" for the
public network. So far, we have used a static interface instead. This
patch adds support for "manual" interfaces.

Change-Id: Ibd2579deb2770e93c96ae710a970fda17c5e49a0
This commit is contained in:
Roger Luethi
2016-01-25 19:30:11 +01:00
parent a8b6e94bb7
commit d11e831ef1
3 changed files with 8 additions and 0 deletions

View File

@@ -19,6 +19,8 @@ function config_netif {
if [ "$if_type" = "dhcp" ]; then
template="template-ubuntu-interfaces-dhcp"
elif [ "$if_type" = "manual" ]; then
template="template-ubuntu-interfaces-manual"
else
template="template-ubuntu-interfaces-static"
fi

View File

@@ -68,6 +68,8 @@ function configure_node_netifs {
type=${NODE_IF_TYPE[index]}
if [ "$type" = "dhcp" ]; then
vm_nic_base "$vm_name" $index
elif [ "$type" = "manual" ]; then
vm_nic_std "$vm_name" $index
elif [ "$type" = "static" ]; then
vm_nic_std "$vm_name" $index
else

View File

@@ -0,0 +1,4 @@
auto %IF_NAME%
iface %IF_NAME% inet manual
up ip link set dev $IFACE up
down ip link set dev $IFACE down