UI: fix create l2 network offering with userdata (#6174)

This commit is contained in:
Wei Zhou 2022-03-29 04:32:10 +02:00 committed by GitHub
parent fb43076f9e
commit f4b9ab034b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -891,6 +891,10 @@ export default {
} }
} }
if (values.guestiptype === 'l2' && values.userdatal2 === true) {
params.supportedservices = 'UserData'
}
if ('egressdefaultpolicy' in values && values.egressdefaultpolicy !== 'allow') { if ('egressdefaultpolicy' in values && values.egressdefaultpolicy !== 'allow') {
params.egressdefaultpolicy = false params.egressdefaultpolicy = false
} }