sriov-network-operator icon indicating copy to clipboard operation
sriov-network-operator copied to clipboard

[software-bridges 3/x] Add bridge package

Open ykulazhenkov opened this issue 1 year ago • 2 comments

The package contains logic to work with managed OVS bridges.

// DiscoverBridges returns information about managed bridges on the host
DiscoverBridges() (sriovnetworkv1.Bridges, error)
// ConfigureBridge configure managed bridges for the host
ConfigureBridges(bridgesSpec sriovnetworkv1.Bridges, bridgesStatus sriovnetworkv1.Bridges) error
// DetachInterfaceFromManagedBridge detach interface from a managed bridge,
// this step is required before applying some configurations to PF, e.g. changing of eSwitch mode.
// The function detach interface from managed bridges only.
DetachInterfaceFromManagedBridge(pciAddr string) error

Depends on #689

Context is Software bridge management feature

ykulazhenkov avatar Apr 29 '24 12:04 ykulazhenkov

Thanks for your PR, To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor. Best regards.

github-actions[bot] avatar Apr 29 '24 12:04 github-actions[bot]

Pull Request Test Coverage Report for Build 9958277243

Details

  • 648 of 856 (75.7%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+2.2%) to 43.08%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/host/internal/bridge/bridge.go 41 46 89.13%
pkg/host/internal/bridge/ovs/store/store.go 109 149 73.15%
pkg/host/internal/bridge/ovs/ovs.go 388 551 70.42%
<!-- Total: 648 856
Totals Coverage Status
Change from base Build 9955379640: 2.2%
Covered Lines: 6266
Relevant Lines: 14545

💛 - Coveralls

coveralls avatar Apr 29 '24 12:04 coveralls

partial review for now. added a few comments :)

adrianchiris avatar May 16 '24 16:05 adrianchiris

Thanks for your PR, To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor. Best regards.

github-actions[bot] avatar May 21 '24 15:05 github-actions[bot]

@adrianchiris @SchSeba thanks for your reviews! I addressed your comments. PTAL

ykulazhenkov avatar May 21 '24 15:05 ykulazhenkov

Thanks for your PR, To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor. Best regards.

github-actions[bot] avatar May 23 '24 07:05 github-actions[bot]

PR reabased. Currently it has no dependencies from other PRs

ykulazhenkov avatar May 23 '24 07:05 ykulazhenkov

Thanks for your PR, To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor. Best regards.

github-actions[bot] avatar Jun 26 '24 07:06 github-actions[bot]

Thanks for your PR, To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor. Best regards.

github-actions[bot] avatar Jun 28 '24 07:06 github-actions[bot]

The PR rebased. @SchSeba I think all comments are addressed. Can you take another look? Thanks

ykulazhenkov avatar Jun 28 '24 07:06 ykulazhenkov

@SchSeba can we merge this one ?

adrianchiris avatar Jul 08 '24 07:07 adrianchiris

Thanks for your PR, To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor. Best regards.

github-actions[bot] avatar Jul 09 '24 13:07 github-actions[bot]

@zeeke Thanks for the review. I addressed your comments. Please, take another look

ykulazhenkov avatar Jul 16 '24 14:07 ykulazhenkov