Merge pull request #35 from pradipd/user/pradipd/lbvm-upgrade
Returning replicationcount
This commit is contained in:
Коммит
bb6593424e
2
go.mod
2
go.mod
|
@ -5,7 +5,7 @@ go 1.14
|
|||
require (
|
||||
github.com/Azure/go-autorest/autorest v0.9.0
|
||||
github.com/Azure/go-autorest/autorest/date v0.2.0
|
||||
github.com/microsoft/moc v0.10.8-alpha.4
|
||||
github.com/microsoft/moc v0.10.8-alpha.8
|
||||
github.com/satori/go.uuid v1.2.0
|
||||
github.com/spf13/viper v1.6.2
|
||||
google.golang.org/grpc v1.27.1
|
||||
|
|
3
go.sum
3
go.sum
|
@ -89,6 +89,8 @@ github.com/microsoft/moc v0.10.8-alpha.3 h1:NP3S7MG7inMD/hLxqYRZs9uY/KjXLWpPecSK
|
|||
github.com/microsoft/moc v0.10.8-alpha.3/go.mod h1:/lr/vGC29+2LhaLKbd49YsBFwFBJCu/UnOpOtH2WN88=
|
||||
github.com/microsoft/moc v0.10.8-alpha.4 h1:OytBxCqHoOAzLUA45CdORlNn0Zyr2QSKcAMli4/xps0=
|
||||
github.com/microsoft/moc v0.10.8-alpha.4/go.mod h1:/lr/vGC29+2LhaLKbd49YsBFwFBJCu/UnOpOtH2WN88=
|
||||
github.com/microsoft/moc v0.10.8-alpha.8 h1:fWBpz9HdqpcFE02Q5u2sDDMTf07wi7oFzPGnEPP8rqE=
|
||||
github.com/microsoft/moc v0.10.8-alpha.8/go.mod h1:2/3URlKUTS/xVyMJfDfWe57f56ryuhDMAYzzQoihhl0=
|
||||
github.com/mitchellh/mapstructure v1.1.2 h1:fmNYVwqnSfB9mZU6OS2O6GsXM+wcskZDuKQzvN1EDeE=
|
||||
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
|
||||
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
|
||||
|
@ -169,6 +171,7 @@ golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5h
|
|||
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210309074719-68d13333faf2 h1:46ULzRKLh1CwgRq2dC5SlBzEqqNCi8rreOZnNrbqcIY=
|
||||
golang.org/x/sys v0.0.0-20210309074719-68d13333faf2/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
|
|
|
@ -236,7 +236,8 @@ func getLoadBalancer(wssdLB *wssdcloudnetwork.LoadBalancer) (networkLB *network.
|
|||
ID: &wssdLB.Id,
|
||||
Version: &wssdLB.Status.Version.Number,
|
||||
LoadBalancerPropertiesFormat: &network.LoadBalancerPropertiesFormat{
|
||||
Statuses: status.GetStatuses(wssdLB.GetStatus()),
|
||||
Statuses: status.GetStatuses(wssdLB.GetStatus()),
|
||||
ReplicationCount: wssdLB.GetReplicationCount(),
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -501,6 +501,8 @@ type LoadBalancerPropertiesFormat struct {
|
|||
ProvisioningState *string `json:"provisioningState,omitempty"`
|
||||
// State - State
|
||||
Statuses map[string]*string `json:"statuses"`
|
||||
// ReplicateionCount
|
||||
ReplicationCount uint32 `json:"replicationCount,omitempty"`
|
||||
}
|
||||
|
||||
// LoadBalancer loadBalancer resource.
|
||||
|
|
Загрузка…
Ссылка в новой задаче