Skip to content

Commit 3289a2a

Browse files
Merge pull request #522 from eduolivares/bgp-remove-l2advertisements
[BGP] Remove L2Advertisements L2Advertisements are not needed when BGP is used at controlplane level. Reviewed-by: Andrew Bays <[email protected]>
2 parents a7d5e5a + 32aec37 commit 3289a2a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

examples/dt/bgp_dt01/control-plane/kustomization.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ patches:
5656
kind: NetworkAttachmentDefinition
5757
labelSelector: "osp/net-attach-def-type=bgp"
5858
path: ocp_network_template.yaml
59+
# All L2Advertisements are removed
60+
- target:
61+
kind: L2Advertisement
62+
patch: |-
63+
kind: L2Advertisement
64+
metadata:
65+
name: .*
66+
$patch: delete
5967
6068
replacements:
6169
# BGP peer IP addresses

0 commit comments

Comments
 (0)