Skip to content

Commit

Permalink
Merge pull request #85 from megaport/fix/update-vxc-pointer-case
Browse files Browse the repository at this point in the history
fix: adds case for pointer version of update
  • Loading branch information
mega-alex authored Nov 6, 2024
2 parents 8e68002 + 2d8a9f9 commit 2ac515a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vxc.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func (svc *VXCServiceOp) UpdateVXC(ctx context.Context, id string, req *UpdateVX
if req.AEndPartnerConfig != nil {
// Only allow AENdPartnerConfig or VROUTER Partner Config for AEndPartnerConfig in VXC Updates
switch req.AEndPartnerConfig.(type) {
case VXCPartnerConfiguration, VXCOrderVrouterPartnerConfig:
case VXCPartnerConfiguration, *VXCOrderVrouterPartnerConfig, VXCOrderVrouterPartnerConfig:
update.AEndPartnerConfig = req.AEndPartnerConfig
default:
return nil, ErrInvalidVXCAEndPartnerConfig
Expand All @@ -306,7 +306,7 @@ func (svc *VXCServiceOp) UpdateVXC(ctx context.Context, id string, req *UpdateVX
if req.BEndPartnerConfig != nil {
// Only allow Vrouter Partner Config for BEndPartnerConfig in VXC Updates
switch req.BEndPartnerConfig.(type) {
case VXCOrderVrouterPartnerConfig:
case *VXCOrderVrouterPartnerConfig, VXCOrderVrouterPartnerConfig:
update.BEndPartnerConfig = req.BEndPartnerConfig
default:
return nil, ErrInvalidVXCBEndPartnerConfig
Expand Down

0 comments on commit 2ac515a

Please sign in to comment.