Statistics
| Branch: | Tag: | Revision:

root / contrib / patches / kvm-vif-bridge-v0.4 @ 2e1e6844

History | View | Annotate | Download (470 Bytes)

1
--- kvm-vif-bridge	2011-06-05 11:52:48.000000000 +0300
2
+++ /etc/ganeti/kvm-vif-bridge	2011-06-05 11:55:16.000000000 +0300
3
@@ -91,6 +91,10 @@
4
 	routed_setup_ipv6
5
 	routed_setup_firewall
6
 	routed_setup_nfdhcpd
7
+
8
+    # Quick and dirty hack for the development platform
9
+    # also *bridge* the interface to br0, to support host-based NAT
10
+    brctl addif br0 $INTERFACE
11
 elif [ "$MODE" = "bridged" ]; then
12
 	ifconfig $INTERFACE 0.0.0.0 up
13
 	brctl addif $BRIDGE $INTERFACE