Skip to content

Commit 8c58e98

Browse files
authored
Merge pull request #89663 from slovern/TELCODOCS-2043
TELCODOCS-2043 - CNF-13766 - unnumbered BGP peering
2 parents 26772e2 + 60474ac commit 8c58e98

File tree

3 files changed

+106
-0
lines changed

3 files changed

+106
-0
lines changed

modules/nw-metallb-bgppeer-cr.adoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,19 @@ If you use this field, you cannot specify a value in the `spec.peerASN` field.
4545
|`spec.peerAddress`
4646
|`string`
4747
|Specifies the IP address of the peer to contact for establishing the BGP session.
48+
If you use this field, you cannot specify a value in the `spec.interface` field.
49+
50+
|`spec.interface`
51+
|`string`
52+
|Specifies the interface name to use when establishing a session.
53+
Use this field to configure unnumbered BGP peering.
54+
You must establish a point-to-point, layer 2 connection between the two BGP peers.
55+
You can use unnumbered BGP peering with IPv4, IPv6, or dual-stack, but you must enable IPv6 RAs (Router Advertisements).
56+
Each interface is limited to one BGP connection.
57+
If you use this field, you cannot specify a value in the `spec.peerAddress` field.
58+
The `spec.bgp.routers.neighbors.interface` field is a Technology Preview feature only.
59+
For more information about the support scope of Red{nbsp}Hat Technology Preview features, see link:https://access.redhat.com/support/offerings/techpreview/[Technology Preview Features Support Scope].
60+
4861

4962
|`spec.sourceAddress`
5063
|`string`

modules/nw-metallb-example-bgppeer.adoc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
:_mod-docs-content-type: PROCEDURE
66
[id="nw-metallb-example-bgppeer_{context}"]
77
= Example BGP peer configurations
8+
:FeatureName: The `spec.interface` field
89

910
[id="nw-metallb-example-limit-nodes-bgppeer_{context}"]
1011
== Example: Limit which nodes connect to a BGP peer
@@ -82,3 +83,31 @@ spec:
8283
peerASN: 64500
8384
myASN: 64500
8485
----
86+
87+
[id="nw-metallb-example-unnumbered-bgp-peering_{context}"]
88+
== Example: Specify BGP peers for unnumbered BGP peering
89+
90+
include::snippets/technology-preview.adoc[]
91+
92+
To configure unnumbered BGP peering, specify the interface in the `spec.interface` field by using the following example configuration:
93+
94+
[source,yaml]
95+
----
96+
apiVersion: metallb.io/v1beta2
97+
kind: BGPPeer
98+
metadata:
99+
name: peer-unnumber
100+
namespace: metallb-system
101+
spec:
102+
myASN: 64512
103+
ASN: 645000
104+
interface: net0
105+
----
106+
[NOTE]
107+
====
108+
To use the `interface` field, you must establish a point-to-point, layer 2 connection between the two BGP peers.
109+
You can use unnumbered BGP peering with IPv4, IPv6, or dual-stack, but you must enable IPv6 RAs (Router Advertisements).
110+
Each interface is limited to one BGP connection.
111+
112+
If you use this field, you cannot specify a value in the `spec.bgp.routers.neighbors.address` field.
113+
====

modules/nw-metallb-frr-k8s-configuration-crd.adoc

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
[id="nw-metallb-frrconfiguration-crd_{context}"]
77
= Configuring the FRRConfiguration CRD
88

9+
:FeatureName: The `spec.bgp.routers.neighbors.interface` field
10+
911
The following section provides reference examples that use the `FRRConfiguration` custom resource (CR).
1012

1113
[id="nw-metallb-frrconfiguration-crd-routers_{context}"]
@@ -208,6 +210,57 @@ spec:
208210
foo: "bar"
209211
----
210212

213+
[id="nw-metallb-frrconfiguration-crd-interface_{context}"]
214+
== The interface field
215+
216+
include::snippets/technology-preview.adoc[]
217+
218+
You can use the `interface` field to configure unnumbered BGP peering by using the following example configuration:
219+
220+
.Example `FRRConfiguration` CR
221+
[source,yaml]
222+
----
223+
apiVersion: frrk8s.metallb.io/v1beta1
224+
kind: FRRConfiguration
225+
metadata:
226+
name: test
227+
namespace: frr-k8s-system
228+
spec:
229+
bgp:
230+
bfdProfiles:
231+
- echoMode: false
232+
name: simple
233+
passiveMode: false
234+
routers:
235+
- asn: 64512
236+
neighbors:
237+
- asn: 64512
238+
bfdProfile: simple
239+
disableMP: false
240+
interface: net10 <1>
241+
port: 179
242+
toAdvertise:
243+
allowed:
244+
mode: filtered
245+
prefixes:
246+
- 5.5.5.5/32
247+
toReceive:
248+
allowed:
249+
mode: filtered
250+
prefixes:
251+
- 5.5.5.5/32
252+
----
253+
<1> Activates unnumbered BGP peering.
254+
255+
[NOTE]
256+
====
257+
To use the `interface` field, you must establish a point-to-point, layer 2 connection between the two BGP peers.
258+
You can use unnumbered BGP peering with IPv4, IPv6, or dual-stack, but you must enable IPv6 RAs (Router Advertisements).
259+
Each interface is limited to one BGP connection.
260+
261+
If you use this field, you cannot specify a value in the `spec.bgp.routers.neighbors.address` field.
262+
====
263+
211264
The fields for the `FRRConfiguration` custom resource are described in the following table:
212265

213266
.MetalLB FRRConfiguration custom resource
@@ -252,6 +305,17 @@ If you use this field, you cannot specify a value in the `spec.bgp.routers.neigh
252305
|`spec.bgp.routers.neighbors.address`
253306
|`string`
254307
|Specifies the IP address to establish the session with.
308+
If you use this field, you cannot specify a value in the `spec.bgp.routers.neighbors.interface` field.
309+
310+
|`spec.bgp.routers.neighbors.interface`
311+
|`string`
312+
|Specifies the interface name to use when establishing a session.
313+
Use this field to configure unnumbered BGP peering.
314+
There must be a point-to-point, layer 2 connection between the two BGP peers.
315+
You can use unnumbered BGP peering with IPv4, IPv6, or dual-stack, but you must enable IPv6 RAs (Router Advertisements).
316+
Each interface is limited to one BGP connection.
317+
The `spec.bgp.routers.neighbors.interface` field is a Technology Preview feature only.
318+
For more information about the support scope of Red{nbsp}Hat Technology Preview features, see link:https://access.redhat.com/support/offerings/techpreview/[Technology Preview Features Support Scope].
255319

256320
|`spec.bgp.routers.neighbors.port`
257321
|`integer`

0 commit comments

Comments
 (0)