This commit is contained in:
james 2016-04-24 19:29:12 -06:00
commit aa873a4ebd
2 changed files with 13 additions and 16 deletions

View File

@ -38,9 +38,12 @@ Requirements:
* ConfigObj * ConfigObj
* GTK-VNC (Linux only) * GTK-VNC (Linux only)
Linux package dependencies: Debian/Ubuntu Linux package dependencies:
python2.7 python-gtk2 glade python-gtk-vnc python-glade2 python-configobj python2.7 python-gtk2 glade python-gtk-vnc python-glade2 python-configobj
Gentoo Linux package dependencies:
dev-python/pygtk dev-python/configobj net-libs/gtk-vnc dev-lang/python:2.7 (remember to set "python" USE flag for gtk-vnc!)
OpenXenManager runs has been tested to run on Linux or Windows and should work OpenXenManager runs has been tested to run on Linux or Windows and should work
on MacOSX as well. on MacOSX as well.

View File

@ -395,23 +395,17 @@ class oxcSERVER(oxcSERVERvm, oxcSERVERhost, oxcSERVERproperties,
vif = self.all['VIF'][vif_ref] vif = self.all['VIF'][vif_ref]
# QOS Parameters # QOS Parameters
if "kbps" in vif['qos_algorithm_params']: limit = vif['qos_algorithm_params'].get('kbps', '')
limit = vif['qos_algorithm_params']['kbps']
else:
limit = ""
# IP Addresses # IP Addresses
if guest_metrics in self.all['VM_guest_metrics'] and \ net_addrs = (
len(self.all['VM_guest_metrics'][guest_metrics]['networks']) > 0: self.all['VM_guest_metrics'].get(
net_addrs = self.all['VM_guest_metrics'][guest_metrics]['networks'] guest_metrics, {'networks': ()}).
addresses = [] get('networks', ()))
for key in net_addrs: addresses = [
if key == vif['device'] + "/ip": addr for key, addr in net_addrs.items()
addresses.append(net_addrs[key]) if key.startswith(vif['device'] + '/ip')
elif not str(net_addrs[key]).startswith('fe80'): ]
addresses.append(net_addrs[key])
else:
addresses = []
# FIXME - Fix what? # FIXME - Fix what?
# Network name # Network name