File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -453,6 +453,7 @@ export default {
453453 }
454454 const shouldHaveLabels = physicalNetworks .length > 1
455455 let isValid = true
456+ let guestTrafficNullCount = 0
456457 this .requiredTrafficTypes .forEach (type => {
457458 if (! isValid) return false
458459 let foundType = false
@@ -462,13 +463,20 @@ export default {
462463 if (traffic .type === type) {
463464 foundType = true
464465 }
466+ if (traffic .type === ' guest' && type === ' guest' && (! traffic .label || traffic .label .length === 0 )) {
467+ guestTrafficNullCount++
468+ }
465469 if (this .hypervisor !== ' VMware' ) {
466470 if (shouldHaveLabels && (! traffic .label || traffic .label .length === 0 )) {
467- isValid = false
471+ if (! (traffic .type === ' guest' && foundType && guestTrafficNullCount <= 1 )) {
472+ isValid = false
473+ }
468474 }
469475 } else {
470476 if (shouldHaveLabels && (! traffic .vSwitchName || traffic .vSwitchName .length === 0 )) {
471- isValid = false
477+ if (! (traffic .type === ' guest' && foundType && guestTrafficNullCount <= 1 )) {
478+ isValid = false
479+ }
472480 }
473481 }
474482 })
You can’t perform that action at this time.
0 commit comments