mirror of https://github.com/apache/cloudstack.git
CS-14869: Fix KVM fail to apply DNS/ROUTER option of the network
This commit is contained in:
parent
b4d88d50a5
commit
d18bb876c7
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue