Skip to content

Commit

Permalink
use dynamic NIC assignment in OVS states (#229)
Browse files Browse the repository at this point in the history
We failed to rebase the PR introducing OVS tests. We should use
templates for NICs to our tests work on both OKD and k8s providers.

Signed-off-by: Petr Horacek <[email protected]>
  • Loading branch information
phoracek authored Oct 17, 2019
1 parent e51d023 commit 2bf7c02
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/e2e/states.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ func ovsBrUp(bridgeName string) nmstatev1alpha1.State {
options:
stp: false
port:
- name: eth1
- name: eth2
`, bridgeName))
- name: %s
- name: %s
`, bridgeName, *firstSecondaryNic, *secondSecondaryNic))
}

func ovsbBrWithInternalInterface(bridgeName string) nmstatev1alpha1.State {
Expand All @@ -85,9 +85,9 @@ func ovsbBrWithInternalInterface(bridgeName string) nmstatev1alpha1.State {
options:
stp: true
port:
- name: eth1
- name: %s
type: system
- name: ovs0
type: internal`,
bridgeName))
bridgeName, *firstSecondaryNic))
}

0 comments on commit 2bf7c02

Please sign in to comment.