When checking different vlan trunk items, minID and maxID's upper thresholds are checked, ID's are not. Instead, minID is checked again.
id should be checked in this case.
|
if item.ID != nil { |
|
id = *item.ID |
|
if minID > 4096 { |
|
return nil, errors.New("incorrect trunk id parameter") |
|
} |
|
vlans[id] = true |
Reported by gemini: #427 (comment)
When checking different vlan trunk items, minID and maxID's upper thresholds are checked, ID's are not. Instead, minID is checked again.
id should be checked in this case.
ovs-cni/pkg/plugin/plugin.go
Lines 238 to 243 in 25cc08c
Reported by gemini: #427 (comment)