Skip to content

Commit 0a38960

Browse files
authored
Merge pull request #1284 from stgraber/main
Correct macvlan mode names
2 parents 80613a8 + e1e902e commit 0a38960

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/reference/devices_nic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Key | Type | Default | Managed | Description
118118
`boot.priority` | integer | - | no | Boot priority for VMs (higher value boots first)
119119
`gvrp` | bool | `false` | no | Register VLAN using GARP VLAN Registration Protocol
120120
`hwaddr` | string | randomly assigned | no | The MAC address of the new interface
121-
`mode` | string | `bridge` | no | Macvlan mode (one of `bridge`, `vepa`, `passthrough` or `private`)
121+
`mode` | string | `bridge` | no | Macvlan mode (one of `bridge`, `vepa`, `passthru` or `private`)
122122
`mtu` | integer | parent MTU | yes | The MTU of the new interface
123123
`name` | string | kernel assigned | no | The name of the interface inside the instance
124124
`network` | string | - | no | The managed network to link the device to (instead of specifying the `nictype` directly)

internal/server/device/nic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func nicValidationRules(requiredFields []string, optionalFields []string, instCo
5252
"security.acls.default.ingress.logged": validate.Optional(validate.IsBool),
5353
"security.acls.default.egress.logged": validate.Optional(validate.IsBool),
5454
"security.promiscuous": validate.Optional(validate.IsBool),
55-
"mode": validate.Optional(validate.IsOneOf("bridge", "vepa", "passthrough", "private")),
55+
"mode": validate.Optional(validate.IsOneOf("bridge", "vepa", "passthru", "private")),
5656
}
5757

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

0 commit comments

Comments
 (0)