1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

Fixed create net alias

This commit is contained in:
Retspen 2015-04-21 15:58:56 +03:00
parent 1fcb49ffc8
commit eda0a390fa
3 changed files with 4 additions and 4 deletions

View file

@ -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: