File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
pkg/liqo-controller-manager/networking/external-network/remapping Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -179,13 +179,13 @@ func forgeCIDRFirewallConfigurationDNATRules(cfg *networkingv1beta1.Configuratio
179179
180180func forgeCIDRFirewallConfigurationSNATRules (cfg * networkingv1beta1.Configuration ,
181181 opts * Options , cidrtype CIDRType ) []firewall.NatRule {
182- var localCIDR , remoteRemapCIDR string
182+ var remoteCIDR , remoteRemapCIDR string
183183 switch cidrtype {
184184 case PodCIDR :
185- localCIDR = cidrutils .GetPrimary (cfg .Spec .Local .CIDR .Pod ).String ()
185+ remoteCIDR = cidrutils .GetPrimary (cfg .Spec .Remote .CIDR .Pod ).String ()
186186 remoteRemapCIDR = cidrutils .GetPrimary (cfg .Status .Remote .CIDR .Pod ).String ()
187187 case ExternalCIDR :
188- localCIDR = cidrutils .GetPrimary (cfg .Spec .Local .CIDR .External ).String ()
188+ remoteCIDR = cidrutils .GetPrimary (cfg .Spec .Remote .CIDR .External ).String ()
189189 remoteRemapCIDR = cidrutils .GetPrimary (cfg .Status .Remote .CIDR .External ).String ()
190190 }
191191
@@ -204,7 +204,7 @@ func forgeCIDRFirewallConfigurationSNATRules(cfg *networkingv1beta1.Configuratio
204204 {
205205 Op : firewall .MatchOperationEq ,
206206 IP : & firewall.MatchIP {
207- Value : localCIDR ,
207+ Value : remoteCIDR ,
208208 Position : firewall .MatchPositionSrc ,
209209 },
210210 },
You can’t perform that action at this time.
0 commit comments