Skip to content

Commit

Permalink
add an optional pciAddress feild to network interfaces schema
Browse files Browse the repository at this point in the history
Signed-off-by: Vladik Romanovsky <[email protected]>
  • Loading branch information
vladikr committed Aug 9, 2018
1 parent af75d48 commit 6af2b88
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -3849,6 +3849,10 @@
"description": "Logical name of the interface as well as a reference to the associated networks.\nMust match the Name of a Network.",
"type": "string"
},
"pciAddress": {
"description": "If specified, the virtual network interface will be placed on the guests pci address with the specifed PCI address. For example: 0000:81:01.10\n+optional",
"type": "string"
},
"ports": {
"description": "List of ports to be forwarded to the virtual machine.",
"type": "array",
Expand Down
2 changes: 2 additions & 0 deletions manifests/generated/vm-resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ spec:
type: string
name:
type: string
pciAddress:
type: string
ports:
items:
properties:
Expand Down
2 changes: 2 additions & 0 deletions manifests/generated/vmi-resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ spec:
type: string
name:
type: string
pciAddress:
type: string
ports:
items:
properties:
Expand Down
2 changes: 2 additions & 0 deletions manifests/generated/vmipreset-resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ spec:
type: string
name:
type: string
pciAddress:
type: string
ports:
items:
properties:
Expand Down
2 changes: 2 additions & 0 deletions manifests/generated/vmirs-resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ spec:
type: string
name:
type: string
pciAddress:
type: string
ports:
items:
properties:
Expand Down
7 changes: 7 additions & 0 deletions pkg/api/v1/openapi_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,13 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA
Format: "int32",
},
},
"pciAddress": {
SchemaProps: spec.SchemaProps{
Description: "If specified, the virtual network interface will be placed on the guests pci address with the specifed PCI address. For example: 0000:81:01.10",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"name"},
},
Expand Down
3 changes: 3 additions & 0 deletions pkg/api/v1/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,9 @@ type Interface struct {
// Interfaces without a boot order are not tried.
// +optional
BootOrder *uint `json:"bootOrder,omitempty"`
// If specified, the virtual network interface will be placed on the guests pci address with the specifed PCI address. For example: 0000:81:01.10
// +optional
PciAddress string `json:"pciAddress,omitempty"`
}

// Represents the method which will be used to connect the interface to the guest.
Expand Down
1 change: 1 addition & 0 deletions pkg/api/v1/schema_swagger_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ func (Interface) SwaggerDoc() map[string]string {
"ports": "List of ports to be forwarded to the virtual machine.",
"macAddress": "Interface MAC address. For example: de:ad:00:00:be:af or DE-AD-00-00-BE-AF.",
"bootOrder": "BootOrder is an integer value > 0, used to determine ordering of boot devices.\nLower values take precedence.\nEach interface or disk that has a boot order must have a unique value.\nInterfaces without a boot order are not tried.\n+optional",
"pciAddress": "If specified, the virtual network interface will be placed on the guests pci address with the specifed PCI address. For example: 0000:81:01.10\n+optional",
}
}

Expand Down

0 comments on commit 6af2b88

Please sign in to comment.