mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-06-05 03:49:38 +00:00
add macvtap support : create macvtap virtual net, add/edit instance network for macvtap
This commit is contained in:
@@ -46,7 +46,7 @@ class AddNetPool(forms.Form):
|
||||
|
||||
def clean_bridge_name(self):
|
||||
bridge_name = self.cleaned_data['bridge_name']
|
||||
if self.cleaned_data['forward'] == 'bridge':
|
||||
if self.cleaned_data['forward'] in ['bridge', 'macvtap']:
|
||||
have_symbol = re.match('^[a-zA-Z0-9\.\_\:\-]+$', bridge_name)
|
||||
if not have_symbol:
|
||||
raise forms.ValidationError(_('The pool bridge name must not contain any special characters'))
|
||||
|
||||
Reference in New Issue
Block a user