Skip to content

[CRM] Replace fdbclear with swssconfig DEL#1578

Closed
skshih wants to merge 3 commits intosonic-net:masterfrom
skshih:PR0417
Closed

[CRM] Replace fdbclear with swssconfig DEL#1578
skshih wants to merge 3 commits intosonic-net:masterfrom
skshih:PR0417

Conversation

@skshih
Copy link
Copy Markdown

@skshih skshih commented Apr 17, 2020

Description of PR

During the fdb test, a testing FDB record is added with swssconfig but removed with fdbclear.

However with fdbclear the record is not removed from appDB after testing.

The remaining record in appDB may result in the next test case "warm-reboot" to fail

becauses orchagent restore failed and terminated after warm-reboot.

So I replace fdbclear command with swssconfig DEL.

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Approach

How did you do it?

Use j2 template to render FDB JSON config and apply with swssconfig.

How did you verify/test it?

Run the original test file "crm_test_fdb_entry.yml" first.
Check AppDB with redis-cli after testing , there is a record "FDB_TABLE:Vlan2:52-54-00-25-07-E9" left.

Apply the patch and run test file "crm_test_fdb_entry.yml" again.
Check AppDB with redis-cli after testing , the is no testing record left.

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

The testing FDB record is added with swssconfig but removed with fdbclear.

However with fdbclear the record is not removed from appDB after testing.

It's better to remove fdb record with swssconfig DEL.
@msftclas
Copy link
Copy Markdown

msftclas commented Apr 17, 2020

CLA assistant check
All CLA requirements met.

@lguohan
Copy link
Copy Markdown
Contributor

lguohan commented Apr 17, 2020

"However with fdbclear the record is not removed from appDB after testing.", why is this? is this a sonic bug, or test issue?

- set_fact: op="SET"

- name: Render FDB JSON config.
template: src=roles/test/templates/fdb_conf.j2 dest=/tmp/fdb_conf.json
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you rename the file to fdb_json.j2 but here you use fdb_conf.j2, obviously, there is a mismatch of the name. Can you provide your test run results? We would expect you have run the test successfully before you submit the fix.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.. it's a typo. I'm sorry for that, will attach my test result later.

@vincentchiang-ec
Copy link
Copy Markdown
Contributor

fdbclear removes FDB entry from ASIC and syncd notify fdborch to remove entry from stateDB. The record in appDB looks like user configuration.

@skshih
Copy link
Copy Markdown
Author

skshih commented Apr 17, 2020

I think it's test issue, the fdbclear behavior just following the design document.

https://github.com/Azure/SONiC/blob/d4dacee69ac8eb51e22a11a6ae08d210c42d812e/doc/layer2-forwarding-enhancements/images/portVlanRemoveFlush.jpg

FDB entry is binding to bridge port. 
Need to remove FDB entry first otherwise removing VLAN member will be failed.
@skshih

This comment has been minimized.

@lguohan
Copy link
Copy Markdown
Contributor

lguohan commented Apr 22, 2020

i understand the issue here. i am discussing with the team what is the proper way to solve this issue. it looks like an image issue.

@skshih
Copy link
Copy Markdown
Author

skshih commented May 18, 2020

@lguohan May I ask your opinion or plan about this issue after your discussion ?

@skshih skshih requested a review from a team as a code owner March 2, 2022 17:37
@skshih skshih closed this by deleting the head repository Aug 6, 2024
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
sonic-swss:

bb69ca2 [portsorch] Avoid orchagent crash when set invalid interface types to port (sonic-net#1906)
6e1bacc [pfcwd] Fix the polling interval time granularity (sonic-net#1912)
564785b [teammgrd]: Improve LAGs cleanup on shutdown: send SIGTERM directly to PID. (sonic-net#1841)
7ee8d26 [tlm teamd] Add retry mechanism before logging the ERR in get_dumps. (sonic-net#1629)
7f57d3d [fgnhgorch] Enable packet flow when no FG ECMP neighbors are resolved (sonic-net#1900)
08d009f Mux state order change (sonic-net#1902)

sonic-utilities:

1bc0f07 Provide support to install platform extensions (sonic-net#1578)
968c781 [config reload] Removed job-mode for sonic.target restart (sonic-net#1820)
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.

4 participants