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:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
Reference in New Issue
Block a user