mirror of https://github.com/apache/cloudstack.git
bug CS-15984: parse and return stats for network usage command with vpn option
status CS-15984: resolved fixed
This commit is contained in:
parent
ddc50606d7
commit
50c6bd77a0
|
|
@ -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 ");
|
||||
|
|
|
|||
|
|
@ -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(":");
|
||||
|
|
|
|||
Loading…
Reference in New Issue