Skip to content

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

Merged
yxieca merged 1 commit intosonic-net:masterfrom
yxieca:portsyncd
Feb 25, 2018
Merged

[portsyncd] allow port syncd to parse port_config.ini in random column order#445
yxieca merged 1 commit intosonic-net:masterfrom
yxieca:portsyncd

Conversation

@yxieca
Copy link
Copy Markdown
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 <[email protected]>
@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.
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
…n order (sonic-net#445)

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

Signed-off-by: Ying Xie <[email protected]>
jianyuewu pushed a commit to jianyuewu/sonic-swss that referenced this pull request Dec 24, 2025
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