Skip to content

fix(hostagent): skip redundant network request file write on reconcile#57

Draft
tsorya wants to merge 1 commit into
NVIDIA:public-mainfrom
tsorya:igal/skip-redundant-network-req-write
Draft

fix(hostagent): skip redundant network request file write on reconcile#57
tsorya wants to merge 1 commit into
NVIDIA:public-mainfrom
tsorya:igal/skip-redundant-network-req-write

Conversation

@tsorya

@tsorya tsorya commented Jun 9, 2026

Copy link
Copy Markdown

Summary

  • The AddVFToBridge operation in the hostagent network manager unconditionally rewrote the network request file every 30-second reconcile tick, even when the VF name had not changed.
  • Guard the write behind a comparison so the file is only updated when the VF interface name actually differs, eliminating noisy wrote network request file log lines.

Test plan

  • Deploy hostagent with this change and verify wrote network request file log only appears on first reconcile (or when VF name changes), not every 30 seconds.

The AddVFToBridge operation unconditionally rewrote the network request
file every 30-second reconcile tick, even when the VF name had not
changed. Guard the write behind a comparison so the file is only
updated when the VF interface name actually differs.

Signed-off-by: Igal Tsoiref <itsoiref@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@tsorya tsorya marked this pull request as draft June 9, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant