From f89e2be407b248ec674751d86777556f585931e6 Mon Sep 17 00:00:00 2001 From: anthony Date: Mon, 23 Jul 2012 13:06:17 -0700 Subject: [PATCH] fix SSVM --- .../cloud/hypervisor/xen/resource/CitrixResourceBase.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java b/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java index 7759169da52..68c7a77d24f 100644 --- a/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java +++ b/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java @@ -567,9 +567,12 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe return new XsLocalNetwork(Network.getByUuid(conn, _host.privateNetwork), null, PIF.getByUuid(conn, _host.privatePif), null); } else if (type == TrafficType.Public) { return new XsLocalNetwork(Network.getByUuid(conn, _host.publicNetwork), null, PIF.getByUuid(conn, _host.publicPif), null); - } else if (type == TrafficType.Storage) { + } + /* TrafficType.Storage is for secondary storage, while storageNetwork1 is for primary storage, we need better name here + else if (type == TrafficType.Storage) { return new XsLocalNetwork(Network.getByUuid(conn, _host.storageNetwork1), null, PIF.getByUuid(conn, _host.storagePif1), null); } + */ throw new CloudRuntimeException("Unsupported network type: " + type); }