bug CS-15984: parse and return stats for network usage command with vpn option

status CS-15984: resolved fixed
This commit is contained in:
kishan 2012-08-14 16:36:29 +05:30
parent ddc50606d7
commit 50c6bd77a0
2 changed files with 2 additions and 2 deletions

View File

@ -548,7 +548,7 @@ public class VmwareResource implements StoragePoolResource, ServerResource, Vmwa
throw new Exception(" vpc network usage plugin call failed ");
}
if (option.equals("get")) {
if (option.equals("get") || option.equals("vpn")) {
String result = resultPair.second();
if (result == null || result.isEmpty()) {
throw new Exception(" vpc network usage get returns empty ");

View File

@ -189,7 +189,7 @@ public class XenServer56Resource extends CitrixResourceBase {
}
String result = callHostPlugin(conn, "vmops", "routerProxy", "args", args);
if (option.equals("get")) {
if (option.equals("get") || option.equals("vpn")) {
long[] stats = new long[2];
if (result != null) {
String[] splitResult = result.split(":");