Merge "Configure pci-sriov interface without data network"
This commit is contained in:
commit
161fe9f2f8
|
@ -537,14 +537,14 @@ class AddInterface(forms.SelfHandlingForm):
|
||||||
else:
|
else:
|
||||||
datanetworks = []
|
datanetworks = []
|
||||||
|
|
||||||
# datanetwork selection is required for 'data', 'pci-passthrough'
|
# datanetwork selection is required for 'data' and 'pci-passthrough'
|
||||||
# and 'pci-sriov'. It is NOT required for any other interface class
|
# It is NOT required for any other interface class
|
||||||
if not datanetworks:
|
if not datanetworks:
|
||||||
|
|
||||||
# Note that 1 of 3 different controls may be used to select
|
# Note that 1 of 3 different controls may be used to select
|
||||||
# data network, make sure to set the error on the appropriate
|
# data network, make sure to set the error on the appropriate
|
||||||
# control
|
# control
|
||||||
if ifclass in ['data', 'pci-passthrough', 'pci-sriov']:
|
if ifclass in ['data', 'pci-passthrough']:
|
||||||
raise forms.ValidationError(_(
|
raise forms.ValidationError(_(
|
||||||
"You must specify a Data Network"))
|
"You must specify a Data Network"))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue