Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
b6721beb
Commit
b6721beb
authored
Sep 01, 2017
by
Davanum Srinivas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes in OpenStack cloud provider for latest gophercloud
parent
73326ef0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
openstack_loadbalancer.go
...oudprovider/providers/openstack/openstack_loadbalancer.go
+1
-1
openstack_routes.go
pkg/cloudprovider/providers/openstack/openstack_routes.go
+2
-2
No files found.
pkg/cloudprovider/providers/openstack/openstack_loadbalancer.go
View file @
b6721beb
...
...
@@ -994,7 +994,7 @@ func (lbaas *LbaasV2) EnsureLoadBalancer(clusterName string, apiService *v1.Serv
}
portID
:=
loadbalancer
.
VipPortID
update_opts
:=
neutronports
.
UpdateOpts
{
SecurityGroups
:
[]
string
{
lbSecGroup
.
ID
}}
update_opts
:=
neutronports
.
UpdateOpts
{
SecurityGroups
:
&
[]
string
{
lbSecGroup
.
ID
}}
res
:=
neutronports
.
Update
(
lbaas
.
network
,
portID
,
update_opts
)
if
res
.
Err
!=
nil
{
glog
.
Errorf
(
"Error occured updating port: %s"
,
portID
)
...
...
pkg/cloudprovider/providers/openstack/openstack_routes.go
View file @
b6721beb
...
...
@@ -121,7 +121,7 @@ func updateAllowedAddressPairs(network *gophercloud.ServiceClient, port *neutron
origPairs
:=
port
.
AllowedAddressPairs
// shallow copy
_
,
err
:=
neutronports
.
Update
(
network
,
port
.
ID
,
neutronports
.
UpdateOpts
{
AllowedAddressPairs
:
newPairs
,
AllowedAddressPairs
:
&
newPairs
,
})
.
Extract
()
if
err
!=
nil
{
return
nil
,
err
...
...
@@ -130,7 +130,7 @@ func updateAllowedAddressPairs(network *gophercloud.ServiceClient, port *neutron
unwinder
:=
func
()
{
glog
.
V
(
4
)
.
Info
(
"Reverting allowed-address-pairs change to port "
,
port
.
ID
)
_
,
err
:=
neutronports
.
Update
(
network
,
port
.
ID
,
neutronports
.
UpdateOpts
{
AllowedAddressPairs
:
origPairs
,
AllowedAddressPairs
:
&
origPairs
,
})
.
Extract
()
if
err
!=
nil
{
glog
.
Warning
(
"Unable to reset allowed-address-pairs during error unwind: "
,
err
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment