Skip to content

Commit

Permalink
Merge pull request #60 from HewlettPackard/minor-fix-Lb
Browse files Browse the repository at this point in the history
removed the unknown fields to fix the LB acceptance test
  • Loading branch information
manjunath-batakurki authored Oct 11, 2022
2 parents 6b82724 + 7b3cd42 commit a2dd619
Showing 1 changed file with 62 additions and 77 deletions.
139 changes: 62 additions & 77 deletions pkg/models/load_balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -612,32 +612,27 @@ type CreateLBPoolResp struct {
}

type LBPoolResp struct {
ID int `json:"id" tf:"id,computed"`
LbID int `json:"lb_id" tf:"lb_id"`
Name string `json:"name"`
Category string `json:"category"`
Visibility string `json:"visibility"`
Description string `json:"description"`
InternalID string `json:"internalId"`
ExternalID string `json:"externalId"`
Enabled bool `json:"enabled"`
VipBalance string `json:"vipBalance"`
MinActive int `json:"minActive"`
NumberActive int `json:"numberActive"`
NumberInService int `json:"numberInService"`
HealthScore float32 `json:"healthScore"`
PerformanceScore float32 `json:"performanceScore"`
HealthPenalty float32 `json:"healthPenalty"`
SecurityPenalty float32 `json:"securityPenalty"`
ErrorPenalty float32 `json:"errorPenalty"`
Status string `json:"status"`
DateCreated string `json:"dateCreated"`
LastUpdated string `json:"lastUpdated"`
Nodes []string `json:"nodes"`
Monitors []string `json:"monitors"`
Members []string `json:"members"`
LoadBalancer LBMonitor `json:"loadBalancer"`
LBPoolConfig PoolConfig `json:"config" tf:"config"`
ID int `json:"id" tf:"id,computed"`
LbID int `json:"lb_id" tf:"lb_id"`
Name string `json:"name"`
Category string `json:"category"`
Visibility string `json:"visibility"`
Description string `json:"description"`
InternalID string `json:"internalId"`
ExternalID string `json:"externalId"`
Enabled bool `json:"enabled"`
VipBalance string `json:"vipBalance"`
MinActive int `json:"minActive"`
NumberActive int `json:"numberActive"`
NumberInService int `json:"numberInService"`
HealthScore float32 `json:"healthScore"`
PerformanceScore float32 `json:"performanceScore"`
HealthPenalty float32 `json:"healthPenalty"`
SecurityPenalty float32 `json:"securityPenalty"`
ErrorPenalty float32 `json:"errorPenalty"`
Status string `json:"status"`
DateCreated string `json:"dateCreated"`
LastUpdated string `json:"lastUpdated"`
}

// Get LB Pools
Expand All @@ -646,32 +641,27 @@ type GetLBPools struct {
}

type GetLBPoolsResp struct {
ID int `json:"id" tf:"id,computed"`
LbID int `json:"-" tf:"lb_id,computed"`
Name string `json:"name"`
Visibility string `json:"visibility"`
Description string `json:"description"`
InternalID string `json:"internalId"`
ExternalID string `json:"externalId"`
Enabled bool `json:"enabled"`
VipBalance string `json:"vipBalance"`
MinActive int `json:"minActive"`
NumberActive int `json:"numberActive"`
NumberInService int `json:"numberInService"`
HealthScore float32 `json:"healthScore"`
PerformanceScore float32 `json:"performanceScore"`
HealthPenalty float32 `json:"healthPenalty"`
SecurityPenalty float32 `json:"securityPenalty"`
ErrorPenalty float32 `json:"errorPenalty"`
Status string `json:"status"`
DateCreated string `json:"dateCreated"`
LastUpdated string `json:"lastUpdated"`
Nodes []string `json:"nodes"`
Monitors []string `json:"monitors"`
Members []string `json:"members"`
LoadBalancer LBMonitor `json:"loadBalancer"`
LBPoolConfig PoolConfig `json:"config" tf:"config"`
Meta MetaInfo `json:"meta"`
ID int `json:"id" tf:"id,computed"`
LbID int `json:"-" tf:"lb_id,computed"`
Name string `json:"name"`
Visibility string `json:"visibility"`
Description string `json:"description"`
InternalID string `json:"internalId"`
ExternalID string `json:"externalId"`
Enabled bool `json:"enabled"`
VipBalance string `json:"vipBalance"`
MinActive int `json:"minActive"`
NumberActive int `json:"numberActive"`
NumberInService int `json:"numberInService"`
HealthScore float32 `json:"healthScore"`
PerformanceScore float32 `json:"performanceScore"`
HealthPenalty float32 `json:"healthPenalty"`
SecurityPenalty float32 `json:"securityPenalty"`
ErrorPenalty float32 `json:"errorPenalty"`
Status string `json:"status"`
DateCreated string `json:"dateCreated"`
LastUpdated string `json:"lastUpdated"`
Meta MetaInfo `json:"meta"`
}

// Get Specific LB Pools
Expand All @@ -680,31 +670,26 @@ type GetSpecificLBPool struct {
}

type GetSpecificLBPoolResp struct {
ID int `json:"-" tf:"id,computed"`
LbID int `json:"-" tf:"lb_id,computed"`
Name string `json:"name"`
Visibility string `json:"visibility"`
Description string `json:"description"`
InternalID string `json:"internalId"`
ExternalID string `json:"externalId"`
Enabled bool `json:"enabled"`
VipBalance string `json:"vipBalance"`
MinActive int `json:"minActive"`
NumberActive int `json:"numberActive"`
NumberInService int `json:"numberInService"`
HealthScore float32 `json:"healthScore"`
PerformanceScore float32 `json:"performanceScore"`
HealthPenalty float32 `json:"healthPenalty"`
SecurityPenalty float32 `json:"securityPenalty"`
ErrorPenalty float32 `json:"errorPenalty"`
Status string `json:"status"`
DateCreated string `json:"dateCreated"`
LastUpdated string `json:"lastUpdated"`
Nodes []string `json:"nodes"`
Monitors []string `json:"monitors"`
Members []string `json:"members"`
LoadBalancer LBMonitor `json:"loadBalancer"`
LBPoolConfig PoolConfig `json:"config" tf:"config"`
ID int `json:"-" tf:"id,computed"`
LbID int `json:"-" tf:"lb_id,computed"`
Name string `json:"name"`
Visibility string `json:"visibility"`
Description string `json:"description"`
InternalID string `json:"internalId"`
ExternalID string `json:"externalId"`
Enabled bool `json:"enabled"`
VipBalance string `json:"vipBalance"`
MinActive int `json:"minActive"`
NumberActive int `json:"numberActive"`
NumberInService int `json:"numberInService"`
HealthScore float32 `json:"healthScore"`
PerformanceScore float32 `json:"performanceScore"`
HealthPenalty float32 `json:"healthPenalty"`
SecurityPenalty float32 `json:"securityPenalty"`
ErrorPenalty float32 `json:"errorPenalty"`
Status string `json:"status"`
DateCreated string `json:"dateCreated"`
LastUpdated string `json:"lastUpdated"`
}

// CREATE LB Virtual servers
Expand Down

0 comments on commit a2dd619

Please sign in to comment.