Merge "Configure pci-sriov interface without data network"

This commit is contained in:
Zuul 2023-06-23 17:24:30 +00:00 committed by Gerrit Code Review
commit 161fe9f2f8
1 changed files with 3 additions and 3 deletions

View File

@ -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"))