virt-manager/5397b647-createnet-enable-specifying-29-subnet.patch
Charles Arnold 850019f018 - Upstream bug fixes
53ac1f8d-fix_show_err_typo.patch
  53ac1f8d-createnet-validate-last-page-before-creating-network.patch
- KVM: Don't check for /dev/kvm. It is now built into the kernel
  virtman-kvm.patch

- Upstream bug fix
  53a995cb-fix-usb-storage-removable-syntax.patch

- Upstream bug fixes
  5397b647-createnet-enable-specifying-29-subnet.patch
  539e8cca-createpool-fix-creation-of-gluster-pools.patch
  53a05e73-fix-edit-maxvcpus.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=184
2014-07-01 03:41:52 +00:00

35 lines
1.5 KiB
Diff

Subject: createnet: enable specify /29 subnet
From: Chen Hanxiao chenhanxiao@cn.fujitsu.com Wed Jun 11 09:51:48 2014 +0800
Date: Wed Jun 11 09:52:07 2014 +0800:
Git: 17a11672b142028f6e15b80f3a30b3069792d37f
https://bugzilla.redhat.com/show_bug.cgi?id=1106913
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
Index: virt-manager-1.0.1/virtManager/createnet.py
===================================================================
--- virt-manager-1.0.1.orig/virtManager/createnet.py
+++ virt-manager-1.0.1/virtManager/createnet.py
@@ -268,9 +268,9 @@ class vmmCreateNetwork(vmmGObjectUI):
return self.err.val_err(_("Invalid Network Address"),
_("The network must be an IPv4 address"))
- if ip.numhosts < 16:
+ if ip.numhosts < 8:
return self.err.val_err(_("Invalid Network Address"),
- _("The network must address at least 16 addresses."))
+ _("The network must address at least 8 addresses."))
if not ip.is_private:
res = self.err.yes_no(_("Check Network Address"),
@@ -562,7 +562,7 @@ class vmmCreateNetwork(vmmGObjectUI):
src.modify_bg(Gtk.StateType.NORMAL, _red)
return
- valid_ip = (ip.numhosts >= 16 and ip.is_private)
+ valid_ip = (ip.numhosts >= 8 and ip.is_private)
gateway = (ip.prefixlen != 32 and str(ip.network + 1) or "")
info = (ip.is_private and _("Private") or _("Other/Public"))
start = int(ip.numhosts / 2)