Skip to content

yangerd: report the LACP port state as a list - #1856

Open
alice-rw wants to merge 1 commit into
kernelkit:mainfrom
alice-rw:fix-yangerd-lacp-state
Open

alice-rw wants to merge 1 commit into
kernelkit:mainfrom
alice-rw:fix-yangerd-lacp-state

Conversation

@alice-rw

@alice-rw alice-rw commented Dec 4, 2026

Copy link
Copy Markdown

Description

yangerd read the LACP actor-state and partner-state with getString(), so the list from ip -j became one string and statd dropped the LAG member ports.

Now it uses getStrings(). The unit test now uses list input, as in the real data.

Tested on qemu: show interface lists the member ports under lag0 with their LACP state, and show interface eth1 also works.

Resolves: #1855

Checklist

Tick relevant boxes, this PR is-a or has-a:

  • Bugfix
    • Regression tests
    • ChangeLog updates (for next release)
  • Feature
    • YANG model change => revision updated?
    • Regression tests added?
    • ChangeLog updates (for next release)
    • Documentation added?
  • Test changes
    • Checked in changed Readme.adoc (make test-spec)
    • Added new test to group Readme.adoc and yaml file
  • Code style update (formatting, renaming)
  • Refactoring (please detail in commit messages)
  • Build related changes
  • Documentation content changes
    • ChangeLog updated (for major changes)
  • Other (please describe):

The LACP state flags (actor-state, partner-state) were sent as one
string instead of a list, so statd dropped every LACP member port from
operational data.

Resolves: kernelkit#1855
Signed-off-by: Alisa Artamonova <artamonova.a@yahoo.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

LAG member ports in LACP mode missing from show interface

1 participant