CS-14869: Fix KVM fail to apply DNS/ROUTER option of the network

This commit is contained in:
Sheng Yang 2012-05-17 16:21:33 -07:00
parent b4d88d50a5
commit d18bb876c7
1 changed files with 3 additions and 3 deletions

View File

@ -459,14 +459,14 @@ public class VirtualRoutingResource implements Manager {
command.add("-n", cmd.getVmName());
if (cmd.getDefaultRouter() != null) {
command.add(" -d " + cmd.getDefaultRouter());
command.add("-d", cmd.getDefaultRouter());
}
if (cmd.getStaticRoutes() != null) {
command.add(" -s " + cmd.getStaticRoutes());
command.add("-s", cmd.getStaticRoutes());
}
if (cmd.getDefaultDns() != null) {
command.add(" -N " + cmd.getDefaultDns());
command.add("-N", cmd.getDefaultDns());
}
final String result = command.execute();