Skip to content
This repository was archived by the owner on Mar 22, 2018. It is now read-only.

Commit 37f92a8

Browse files
committed
Changes in OpenStack cloud provider for latest gophercloud
1 parent 90b91da commit 37f92a8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/cloudprovider/providers/openstack/openstack_loadbalancer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ func (lbaas *LbaasV2) EnsureLoadBalancer(clusterName string, apiService *v1.Serv
994994
}
995995

996996
portID := loadbalancer.VipPortID
997-
update_opts := neutronports.UpdateOpts{SecurityGroups: []string{lbSecGroup.ID}}
997+
update_opts := neutronports.UpdateOpts{SecurityGroups: &[]string{lbSecGroup.ID}}
998998
res := neutronports.Update(lbaas.network, portID, update_opts)
999999
if res.Err != nil {
10001000
glog.Errorf("Error occured updating port: %s", portID)

pkg/cloudprovider/providers/openstack/openstack_routes.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func updateAllowedAddressPairs(network *gophercloud.ServiceClient, port *neutron
121121
origPairs := port.AllowedAddressPairs // shallow copy
122122

123123
_, err := neutronports.Update(network, port.ID, neutronports.UpdateOpts{
124-
AllowedAddressPairs: newPairs,
124+
AllowedAddressPairs: &newPairs,
125125
}).Extract()
126126
if err != nil {
127127
return nil, err
@@ -130,7 +130,7 @@ func updateAllowedAddressPairs(network *gophercloud.ServiceClient, port *neutron
130130
unwinder := func() {
131131
glog.V(4).Info("Reverting allowed-address-pairs change to port ", port.ID)
132132
_, err := neutronports.Update(network, port.ID, neutronports.UpdateOpts{
133-
AllowedAddressPairs: origPairs,
133+
AllowedAddressPairs: &origPairs,
134134
}).Extract()
135135
if err != nil {
136136
glog.Warning("Unable to reset allowed-address-pairs during error unwind: ", err)

0 commit comments

Comments
 (0)