Skip to content

Commit b893b45

Browse files
Merge pull request #466 from eduolivares/bgp-worker-3-interface-changes
[BGP] Replace worker-3 NAD from host-device to macvlan We implemented a solution to connect test pods running in worker-3 to the provider network using a host-device NAD. This has been working fine while only one test pod ran simultaneously. With the new feature added to tobiko to run a tobiko-ping pod in parallel with the usual tobiko pod, attaching several pods to that NAD is necessary. This PR modified the BGP configuration so that the mentioned host-device NAD is replaced with a macvlan NAD that allows multiple connections. Reviewed-by: Andrew Bays <[email protected]>
2 parents 163f30f + ab7b991 commit b893b45

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,11 @@ replacements:
808808
fieldPaths:
809809
- spec.desiredState.interfaces.5.ipv4.address.0.prefix-length
810810
- spec.desiredState.interfaces.6.ipv4.address.0.prefix-length
811+
- source:
812+
kind: ConfigMap
813+
name: network-values
814+
fieldPath: data.bgp.prefix-length-worker-3
815+
targets:
811816
- select: # in case of worker-3, there is one less interfaces
812817
kind: NodeNetworkConfigurationPolicy
813818
name: worker-3

examples/dt/bgp/bgp_dt01/control-plane/nncp/values.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ data:
273273

274274
bgp:
275275
prefix-length: 30
276+
prefix-length-worker-3: 24
276277
ifaces:
277278
- enp8s0
278279
- enp9s0
@@ -434,13 +435,13 @@ data:
434435
{
435436
"cniVersion": "0.3.1",
436437
"name": "bgpnet-worker-3",
437-
"type": "host-device",
438-
"device": "enp8s0",
438+
"type": "macvlan",
439+
"master": "enp8s0",
439440
"ipam": {
440441
"type": "whereabouts",
441-
"range": "100.64.10.0/30",
442-
"range_start": "100.64.10.2",
443-
"range_end": "100.64.10.2",
442+
"range": "100.64.10.0/24",
443+
"range_start": "100.64.10.10",
444+
"range_end": "100.64.10.19",
444445
"routes": [{
445446
"dst": "192.168.133.0/24",
446447
"gw": "100.64.10.1"

0 commit comments

Comments
 (0)