Skip to content

Commit

Permalink
Merge branch 'yiying-bulk-api-v3' of https://github.com/nokia/net-att…
Browse files Browse the repository at this point in the history
…ach-def-admission-controller into yiying-bulk-api-v3
  • Loading branch information
tyiying committed Dec 11, 2023
2 parents 29662c1 + ca449e9 commit f9abf01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/fssclient/datamodel.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ type ErrorResponse struct {
Type string `json:"type"`
}

// BulkResponse in FSS Connect Bulk API
// BulkItem in FSS Connect Bulk API BulkResponse
type BulkItem struct {
Status int `json:"status"`
Data interface{} `json:"data"`
Expand All @@ -215,7 +215,7 @@ type BulkResposeMetadata struct {
Total int `json:"total"`
}

// BulkResponses in FSS Connect Bulk API
// BulkResponse in FSS Connect Bulk API
type BulkResponse struct {
ResponseMetadata BulkResposeMetadata `json:"responseMetadata"`
Responses []BulkItem `json:"response"`
Expand Down
1 change: 1 addition & 0 deletions pkg/fssclient/fssclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -1079,6 +1079,7 @@ func (f *FssClient) CreateHostPort(node string, port datatypes.JSONNic, isLag bo
return hostPortID, nil
}

// CreateHostPortBulk send bulk API to create a list of hostports
func (f *FssClient) CreateHostPortBulk(postList []HostPorts) (error) {
for _, hostPortBulk := range postList {
klog.Infof("Send Bulk API POST to create %d of hostPorts", len(hostPortBulk))
Expand Down

0 comments on commit f9abf01

Please sign in to comment.