Skip to content

Commit

Permalink
incusd/device/nic: Correct name of macvlan modes
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Oct 3, 2024
1 parent eb3b8e6 commit e1e902e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/device/nic.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func nicValidationRules(requiredFields []string, optionalFields []string, instCo
"security.acls.default.ingress.logged": validate.Optional(validate.IsBool),
"security.acls.default.egress.logged": validate.Optional(validate.IsBool),
"security.promiscuous": validate.Optional(validate.IsBool),
"mode": validate.Optional(validate.IsOneOf("bridge", "vepa", "passthrough", "private")),
"mode": validate.Optional(validate.IsOneOf("bridge", "vepa", "passthru", "private")),
}

validators := map[string]func(value string) error{}
Expand Down

0 comments on commit e1e902e

Please sign in to comment.