Skip to content

Commit

Permalink
[agent] remove acl from iface before deleting subifaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Frostman committed Dec 17, 2023
1 parent bb1f2c2 commit 567de6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/agent/dozer/bcm/enforcer.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ const (

ActionWeightInterfaceSubinterfaceIPsDelete
ActionWeightVRFInterfaceDelete
ActionWeightACLInterfaceDelete
ActionWeightInterfaceSubinterfaceDelete
ActionWeightInterfaceSubinterfaceUpdate
ActionWeightVRFInterfaceUpdate
Expand Down Expand Up @@ -152,7 +153,6 @@ const (
ActionWeightInterfaceVLANIPsDelete
ActionWeightInterfaceVLANAnycastGatewayDelete

ActionWeightACLInterfaceDelete
ActionWeightACLBaseDelete

ActionWeightInterfaceBaseDelete
Expand Down
4 changes: 4 additions & 0 deletions pkg/agent/dozer/bcm/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -1552,6 +1552,10 @@ func planExternalPeerings(agent *agentapi.Agent, spec *dozer.Spec) error {
spec.VRFs[vpcVrf].Interfaces[sub1] = &dozer.SpecVRFInterface{}
spec.VRFs[ipnsVrf].Interfaces[sub2] = &dozer.SpecVRFInterface{}

spec.ACLInterfaces[sub1] = &dozer.SpecACLInterface{
Egress: stringPtr(ipnsEgressAccessList(external.IPv4Namespace)),
}

for _, subnetName := range peering.Permit.VPC.Subnets {
subnet, exists := vpc.Subnets[subnetName]
if !exists {
Expand Down

0 comments on commit 567de6b

Please sign in to comment.