Skip to content

Commit 40f7e9f

Browse files
committed
api update by KubeVirt Prow build 1888681897098219520
1 parent 0bc9c59 commit 40f7e9f

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

core/v1/schema.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,15 +1280,21 @@ type Interface struct {
12801280
// +optional
12811281
ACPIIndex int `json:"acpiIndex,omitempty"`
12821282
// State represents the requested operational state of the interface.
1283-
// The (only) value supported is `absent`, expressing a request to remove the interface.
1283+
// The supported values are:
1284+
// `absent`, expressing a request to remove the interface.
1285+
// `down`, expressing a request to set the link down.
1286+
// `up`, expressing a request to set the link up.
1287+
// Empty value functions as `up`.
12841288
// +optional
12851289
State InterfaceState `json:"state,omitempty"`
12861290
}
12871291

12881292
type InterfaceState string
12891293

12901294
const (
1291-
InterfaceStateAbsent InterfaceState = "absent"
1295+
InterfaceStateAbsent InterfaceState = "absent"
1296+
InterfaceStateLinkUp InterfaceState = "up"
1297+
InterfaceStateLinkDown InterfaceState = "down"
12921298
)
12931299

12941300
// Extra DHCP options to use in the interface.

core/v1/schema_swagger_generated.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)