Skip to content

Commit

Permalink
Updating the README for the lxn-bridge option
Browse files Browse the repository at this point in the history
  • Loading branch information
capolrik committed Nov 14, 2024
1 parent 349b8a8 commit ace1b55
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,35 @@ If the two above are in place, users can orhestrate k8s-netperf to launch VMs by
`k8s-netperf --vm`
### Using a linux bridge interface
When using `--bridge`, a NetworkAttachmentDefinition defining a bridge interface is attached to the VMs and is used for the test. It requires the name of the bridge as it is defined in the NetworkNodeConfigurationPolicy, NMstate operator is required. For example:
```yaml
apiVersion: nmstate.io/v1alpha1
kind: NodeNetworkConfigurationPolicy
metadata:
name: br0-eth1
spec:
desiredState:
interfaces:
- name: br0
description: Linux bridge with eno2 as a port
type: linux-bridge
state: up
ipv4:
dhcp: true
enabled: true
bridge:
options:
stp:
enabled: false
port:
- name: eno2
```
Then you can launch a test using the bridge interface:
```
./bin/amd64/k8s-netperf --vm --bridge br0
```
### Config file
#### Config File v2
The v2 config file will be executed in the order the tests are presented in the config file.
Expand Down

0 comments on commit ace1b55

Please sign in to comment.