Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions nmagent/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ type PutNetworkContainerRequest struct {
// AzID is the home AZ ID of the network container
AzID uint

// EnableAZR denotes whether AZR is enabled for network container or not
EnableAZR bool
// AZREnabled denotes whether AZR is enabled for network container or not
AZREnabled bool
}

type internalNC struct {
Expand All @@ -90,7 +90,7 @@ type internalNC struct {
VlanID int `json:"vlanId"`
GREKey uint16 `json:"greKey"`
AzID uint `json:"azID"`
EnableAZR bool `json:"enableAZR"`
AZREnabled bool `json:"azrEnabled"`
}

func (p *PutNetworkContainerRequest) MarshalJSON() ([]byte, error) {
Expand All @@ -103,7 +103,7 @@ func (p *PutNetworkContainerRequest) MarshalJSON() ([]byte, error) {
VlanID: p.VlanID,
GREKey: p.GREKey,
AzID: p.AzID,
EnableAZR: p.EnableAZR,
AZREnabled: p.AZREnabled,
}

body, err := json.Marshal(pBody)
Expand Down Expand Up @@ -134,7 +134,7 @@ func (p *PutNetworkContainerRequest) UnmarshalJSON(in []byte) error {
p.VlanID = req.VlanID
p.GREKey = req.GREKey
p.AzID = req.AzID
p.EnableAZR = req.EnableAZR
p.AZREnabled = req.AZREnabled

return nil
}
Expand Down Expand Up @@ -278,9 +278,9 @@ var _ Request = DeleteContainerRequest{}
// DeleteContainerRequest represents all information necessary to request that
// NMAgent delete a particular network container
type DeleteContainerRequest struct {
NCID string `json:"-"` // the Network Container ID
AzID uint `json:"azID"` // home AZ of the Network Container
EnableAZR bool `json:"enableAZR"` // whether AZR is enabled or not
NCID string `json:"-"` // the Network Container ID
AzID uint `json:"azID"` // home AZ of the Network Container
AZREnabled bool `json:"azrEnabled"` // whether AZR is enabled or not

// PrimaryAddress is the primary customer address of the interface in the
// management VNET
Expand Down