|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST RFC 12/16] ts-centos-xen-pkg-install: Create bridge config
Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
---
ts-centos-xen-pkg-install | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/ts-centos-xen-pkg-install b/ts-centos-xen-pkg-install
index 0327b72..9a4dcdd 100755
--- a/ts-centos-xen-pkg-install
+++ b/ts-centos-xen-pkg-install
@@ -82,8 +82,30 @@ sub setupboot () {
logm("ready to boot Xen");
}
+sub setupbridge () {
+ my $bridge_xenbr0 = <<END;
+DEVICE=xenbr0
+STP=no
+BRIDGING_OPTS="hello_time=0"
+TYPE=Bridge
+BOOTPROTO=dhcp
+ONBOOT=yes
+END
+ target_putfilecontents_root_stash($ho, 10, $bridge_xenbr0,
+ "/etc/sysconfig/network-scripts/ifcfg-xenbr0");
+
+ # Should be setup by install
+ target_editfile_root($ho,
"/etc/sysconfig/network-scripts/ifcfg-osstest-if0",
+ sub { target_editfile_kvp_replace("BRIDGE", "xenbr0") });
+ target_editfile_root($ho,
"/etc/sysconfig/network-scripts/ifcfg-osstest-if0",
+ sub { target_editfile_kvp_replace("BOOTPROTO", "none") });
+
+
+}
+
die if @hos > 1;
$ho= $hos[0];
packages_setup();
adjustconfig();
setupboot();
+setupbridge();
--
Anthony PERARD
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |