Skip to content

Commit

Permalink
Included VLAN/VNI in available-resources network response (#72)
Browse files Browse the repository at this point in the history
* first

* [auto generated] Checking in generated offline HTML doc

---------

Co-authored-by: chaitra-mylarappachar <[email protected]>
  • Loading branch information
1 parent d1e3943 commit 611e4b8
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 9 deletions.
4 changes: 2 additions & 2 deletions v1/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) Copyright 2020-2022 Hewlett Packard Enterprise Development LP
# (C) Copyright 2020-2023 Hewlett Packard Enterprise Development LP

PWD := $(shell pwd)
GOPATH := $(shell go env GOPATH)
Expand All @@ -13,7 +13,7 @@ export MOCK_CLIENT_PACKAGE=mockquakeclient
# The location of any generated golang mocks
export GO_MOCK_DIR := ${PWD}/pkg/${MOCK_CLIENT_PACKAGE}

default: build
default: gen

vendor: ../go.mod ../go.sum
go mod download
Expand Down
6 changes: 6 additions & 0 deletions v1/api/swagger/components/schemas/AvailableNetwork.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ properties:
$ref: ./NetworkPurpose.yaml
IPPoolID:
type: string
VLAN:
type: integer
description: VLAN ID of the network
VNI:
type: integer
description: VNI ID of the network
4 changes: 2 additions & 2 deletions v1/html/index.html

Large diffs are not rendered by default.

22 changes: 17 additions & 5 deletions v1/pkg/client/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2695,19 +2695,23 @@ components:
AvailableResources:
example:
Networks:
- IPPoolID: IPPoolID
- VNI: 6
IPPoolID: IPPoolID
Description: Private network for intra-cluster communication
LocationID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
HostUse: Default
Purpose: Storage
ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
VLAN: 0
Name: Private
- IPPoolID: IPPoolID
- VNI: 6
IPPoolID: IPPoolID
Description: Private network for intra-cluster communication
LocationID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
HostUse: Default
Purpose: Storage
ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
VLAN: 0
Name: Private
Volumes:
- TargetIQN: TargetIQN
Expand Down Expand Up @@ -2801,10 +2805,10 @@ components:
ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
StorageInventory:
- FlavorID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Capacity: 1
Capacity: 5
LocationID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
- FlavorID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Capacity: 1
Capacity: 5
LocationID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
SSHKeys:
- ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Expand Down Expand Up @@ -3661,12 +3665,14 @@ components:
AvailableNetwork:
description: Entry of a network available within a data center location
example:
VNI: 6
IPPoolID: IPPoolID
Description: Private network for intra-cluster communication
LocationID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
HostUse: Default
Purpose: Storage
ID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
VLAN: 0
Name: Private
properties:
ID:
Expand All @@ -3693,6 +3699,12 @@ components:
$ref: '#/components/schemas/NetworkPurpose'
IPPoolID:
type: string
VLAN:
description: VLAN ID of the network
type: integer
VNI:
description: VNI ID of the network
type: integer
type: object
MachineSize:
description: Description of a specific machine size offering
Expand Down Expand Up @@ -3826,7 +3838,7 @@ components:
of a specific flavor
example:
FlavorID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Capacity: 1
Capacity: 5
LocationID: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
properties:
FlavorID:
Expand Down
2 changes: 2 additions & 0 deletions v1/pkg/client/docs/AvailableNetwork.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Name | Type | Description | Notes
**HostUse** | [**NetworkHostUse**](NetworkHostUse.md) | | [optional]
**Purpose** | [**NetworkPurpose**](NetworkPurpose.md) | | [optional]
**IPPoolID** | **string** | | [optional]
**VLAN** | **int32** | VLAN ID of the network | [optional]
**VNI** | **int32** | VNI ID of the network | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
4 changes: 4 additions & 0 deletions v1/pkg/client/model_available_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ type AvailableNetwork struct {
HostUse NetworkHostUse `json:"HostUse,omitempty"`
Purpose NetworkPurpose `json:"Purpose,omitempty"`
IPPoolID string `json:"IPPoolID,omitempty"`
// VLAN ID of the network
VLAN int32 `json:"VLAN,omitempty"`
// VNI ID of the network
VNI int32 `json:"VNI,omitempty"`
}

0 comments on commit 611e4b8

Please sign in to comment.