kayobe/ansible/roles/veth/files/ifdown-veth
2017-02-14 15:14:29 +00:00

20 lines
295 B
Bash
Executable File

#!/bin/bash
# Take down a virtual ethernet device pair.
. /etc/init.d/functions
cd /etc/sysconfig/network-scripts
. ./network-functions
[ -f ../network ] && . ../network
CONFIG=${1}
need_config "${CONFIG}"
source_config
./ifdown-eth ${CONFIG} ${2}
./ifdown-eth ifcfg-${PEER_DEVICE} ${2}