This function does not (now) always undo the DHCP configuration.
Sometimes it leaves it. Its main function is to ensure that we have
a bridge for use by guests.
So rename the function.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Tested-by: Robert Ho <robert.hu@intel.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
v14: This patch was previously 4/4 of a miniature series containing
a different way of dealing with the Nested HVM L1 DHCP problem.
});
}
-sub nodhcp () {
+sub ensurebridge () {
target_editfile_root($ho, "/etc/network/interfaces",
"etc-network-interfaces", sub {
my $physif= get_host_property($ho,'interface force',undef);
adjustconfig();
setupboot();
setupinitd();
- nodhcp();
+ ensurebridge();
hosts();
}