You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The root cause appears to be that the AddNATRuleAsync method assumes that EdgeGateway.Configuration.EdgeGatewayServiceConfiguration is not nil, and references its NatService field:
You are correct, there is an unchecked condition where the underlying struct is nil. Just to check before creating a fix, could you provide more code that you use for the Edge Gateway as I didn't manage to get a nil structure while fetching one, maybe there are more things to fix in the code.
Describe the bug
I get a segmentation fault when adding a DNAT rule to an Edge Gateway.
The root cause appears to be that the
AddNATRuleAsync
method assumes thatEdgeGateway.Configuration.EdgeGatewayServiceConfiguration
is notnil
, and references itsNatService
field:go-vcloud-director/govcd/edgegateway.go
Lines 469 to 474 in c3b8ae8
Reproduction steps
go-vcloud-director/govcd/edgegateway.go
Line 280 in c3b8ae8
Expected behavior
A DNAT rule is added to the edge gateway.
Additional context
I have successfully created DNAT rules on the edge gateway using the UI.
VCD version: 10.4.1.21373066
go-vcloud-director version: v2.20.0
The text was updated successfully, but these errors were encountered: