Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[portsyncd] allow port syncd to parse port_config.ini in random column order #445

Merged
merged 1 commit into from
Feb 25, 2018

Conversation

yxieca
Copy link
Contributor

@yxieca yxieca commented Feb 23, 2018

What I did

  • Parse the column header to decide column ordering.
  • Extra column(s) will be ignored.

How I verified it
When processing a port_config.ini with columns name, lanes, alias, index, speed. Though portsyncd ignores the index column, it didn't skip the values in the column, the values were read as speed. Later causing orchagent to crash after setting values in index column as port speed.

With the change, orchagent stayed up, the values were process correctly, and all ports went online.

…n order

- Parse the column header to decide column ordering.
- Extra column(s) will be ignored.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
@yxieca yxieca requested a review from lguohan February 23, 2018 21:23
@yxieca yxieca merged commit 6e274fb into sonic-net:master Feb 25, 2018
@yxieca yxieca deleted the portsyncd branch February 25, 2018 00:49
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
…ortchannel or portchannel members only when it is configured (sonic-net#277) (sonic-net#445)" (sonic-net#452)

This reverts commit dc5d5c4.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants