|
6 | 6 | [id="nw-metallb-frrconfiguration-crd_{context}"]
|
7 | 7 | = Configuring the FRRConfiguration CRD
|
8 | 8 |
|
| 9 | +:FeatureName: The `spec.bgp.routers.neighbors.interface` field |
| 10 | + |
9 | 11 | The following section provides reference examples that use the `FRRConfiguration` custom resource (CR).
|
10 | 12 |
|
11 | 13 | [id="nw-metallb-frrconfiguration-crd-routers_{context}"]
|
@@ -208,6 +210,57 @@ spec:
|
208 | 210 | foo: "bar"
|
209 | 211 | ----
|
210 | 212 |
|
| 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 | + |
211 | 264 | The fields for the `FRRConfiguration` custom resource are described in the following table:
|
212 | 265 |
|
213 | 266 | .MetalLB FRRConfiguration custom resource
|
@@ -252,6 +305,17 @@ If you use this field, you cannot specify a value in the `spec.bgp.routers.neigh
|
252 | 305 | |`spec.bgp.routers.neighbors.address`
|
253 | 306 | |`string`
|
254 | 307 | |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]. |
255 | 319 |
|
256 | 320 | |`spec.bgp.routers.neighbors.port`
|
257 | 321 | |`integer`
|
|
0 commit comments