docklet/conf/lxc-script/lxc-ifup

12 lines
267 B
Plaintext
Raw Normal View History

#!/bin/sh
# $1 : name of container ( name in lxc-start with -n)
# $2 : net
# $3 : network flags, up or down
# $4 : network type, for example, veth
2017-05-09 01:06:39 +08:00
# $5 : value of lxc.network.veth.pair
2017-05-09 01:06:39 +08:00
ovs-vsctl --may-exist add-br $Bridge
ovs-vsctl --may-exist add-port $Bridge $5