createnet: Drop incorrect domain name validation (bz 1195873)

Just let libvirt error if something is wrong
This commit is contained in:
Cole Robinson 2015-03-26 17:11:23 -04:00
parent dc1737e623
commit af562320a5

View File

@ -425,16 +425,6 @@ class vmmCreateNetwork(vmmGObjectUI):
return True
def validate_miscellaneous(self):
domain_name = self.widget("net-domain-name").get_text()
if len(domain_name) > 0:
if len(domain_name) > 16:
return self.err.val_err(_("Invalid Domain Name"),
_("Domain name must be less than 17 characters"))
if re.match("^[a-zA-Z0-9_]*$", domain_name) is None:
return self.err.val_err(_("Invalid Domain Name"),
_("Domain name may contain alphanumeric and '_' "
"characters only"))
return True
def validate(self, page_num):