charm-neutron-gateway/templates/ext-port.conf
2015-02-10 12:00:24 +00:00

17 lines
323 B
Plaintext

description "Enabling Quantum external networking port"
start on runlevel [2345]
task
script
EXT_PORT="{{ ext_port }}"
MTU="{{ ext_port_mtu }}"
if [ -n "$EXT_PORT" ]; then
ip link set $EXT_PORT up
if [ -n "$MTU" ]; then
ip link set $EXT_PORT mtu $MTU
fi
fi
end script