mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-26 23:19:40 +00:00
Fixed create net alias
This commit is contained in:
@@ -65,7 +65,7 @@ class AddInterface(forms.Form):
|
||||
|
||||
def clean_netdev(self):
|
||||
netdev = self.cleaned_data['netdev']
|
||||
have_symbol = re.match('^[a-z0-9.]+$', netdev)
|
||||
have_symbol = re.match('^[a-z0-9.:]+$', netdev)
|
||||
if not have_symbol:
|
||||
raise forms.ValidationError(_('The interface must not contain any special characters'))
|
||||
elif len(netdev) > 10:
|
||||
|
||||
Reference in New Issue
Block a user