Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
Signed-off-by: Praveen Ghuge <praveen.ghuge@outlook.com>
  • Loading branch information
praveenghuge committed Jun 7, 2021
1 parent cca5478 commit b9df69d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
12 changes: 6 additions & 6 deletions apis/network/v1alpha3/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ type SKU struct {
Family string `json:"family,omitempty"`
}

// A ExpressRouteCircuitsSpec defines the desired state of a Subnet.
// A ExpressRouteCircuitsSpec defines the desired state of a ExpressRouteCircuits.
type ExpressRouteCircuitsSpec struct {
xpv1.ResourceSpec `json:",inline"`

Expand All @@ -271,30 +271,30 @@ type ExpressRouteCircuitsSpec struct {
// CircuitName - Name of the expressroutecircuit
CircuitName string `json:"circuitName,omitempty"`

// ResourceGroupName - Name of the Subnet's resource group.
// ResourceGroupName - Name of the ExpressRouteCircuits's resource group.
ResourceGroupName string `json:"resourceGroupName,omitempty"`

// ResourceGroupNameRef - Name of the Subnet's resource group.
// ResourceGroupNameRef - Name of the ExpressRouteCircuits's resource group.
ResourceGroupNameRef string `json:"resourceGroupNameRef,omitempty"`

// ExpressRouteCircuitsPropertiesFormat - Properties of the subnet.
ExpressRouteCircuitsPropertiesFormat `json:"properties"`
}

// A ExpressRouteCircuitsStatus represents the observed state of a Subnet.
// A ExpressRouteCircuitsStatus represents the observed state of a ExpressRouteCircuits.
type ExpressRouteCircuitsStatus struct {
xpv1.ResourceStatus `json:",inline"`

// State of this ExpressRouteCircuits.
State string `json:"state,omitempty"`

// A Message providing detail about the state of this Subnet, if any.
// A Message providing detail about the state of this ExpressRouteCircuits, if any.
Message string `json:"message,omitempty"`

// Etag - A unique string that changes whenever the resource is updated.
Etag string `json:"etag,omitempty"`

// ID of this Subnet.
// ID of this ExpressRouteCircuits.
ID string `json:"id,omitempty"`

// Purpose - A string identifying the intention of use for this subnet based
Expand Down
5 changes: 2 additions & 3 deletions pkg/clients/network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package network
import (
"reflect"

"github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-06-01/network"
networkmgmt "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-06-01/network"

"github.com/crossplane/provider-azure/apis/network/v1alpha3"
Expand Down Expand Up @@ -115,8 +114,8 @@ func NewExpressRouteCircuitsParameters(d *v1alpha3.ExpressRouteCircuits) network
Tags: azure.ToStringPtrMap(d.Spec.Tags),
Sku: &networkmgmt.ExpressRouteCircuitSku{
Name: azure.ToStringPtr(d.Spec.Sku.Tier + "_" + d.Spec.Sku.Family),
Tier: network.ExpressRouteCircuitSkuTier(d.Spec.Sku.Tier),
Family: network.ExpressRouteCircuitSkuFamily(d.Spec.Sku.Family),
Tier: networkmgmt.ExpressRouteCircuitSkuTier(d.Spec.Sku.Tier),
Family: networkmgmt.ExpressRouteCircuitSkuFamily(d.Spec.Sku.Family),
},
ExpressRouteCircuitPropertiesFormat: &networkmgmt.ExpressRouteCircuitPropertiesFormat{
ServiceProviderProperties: &networkmgmt.ExpressRouteCircuitServiceProviderProperties{
Expand Down

0 comments on commit b9df69d

Please sign in to comment.