-
-
Save roaet/96d30009c18dfcc4278f to your computer and use it in GitHub Desktop.
udev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Change: /etc/lxc/default.conf | |
lxc.network.type = veth | |
lxc.network.script.up = /etc/lxc/ovs_up | |
lxc.network.script.down = /etc/lxc/ovs_down | |
lxc.network.flags = up | |
lxc.network.hwaddr = 00:16:3e:xx:xx:xx | |
OVS_UP | |
#!/bin/bash | |
BRIDGE="clientbr0" | |
ovs-vsctl --if-exists del-port $BRIDGE $5 | |
ovs-vsctl --may-exist add-port $BRIDGE $5 | |
echo "$1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12" >> /var/log/lxclog.log | |
OVS_DOWN | |
#!/bin/bash | |
BRIDGE="clientbr0" | |
ovs-vsctl --if-exists del-port $BRIDGE $5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment