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:
parent
1fcb49ffc8
commit
eda0a390fa
3 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue