Skip to content

Do not start pfcwd for M0 devices#726

Merged
yxieca merged 2 commits intosonic-net:masterfrom
neethajohn:no_pfcwd
Nov 7, 2019
Merged

Do not start pfcwd for M0 devices#726
yxieca merged 2 commits intosonic-net:masterfrom
neethajohn:no_pfcwd

Conversation

@neethajohn
Copy link
Contributor

Signed-off-by: Neetha John nejo@microsoft.com

- What I did
Disable pfcwd for M0 devices

- How I did it
Get the device type from the minigraph and use that for comparison

- How to verify it

  • Modified device type in the minigraph to 'MgmtToRRouter' and verified that pfcwd is not started when load_minigraph is executed.
  • For other types, pfcwd was started when load_minigraph was executed

Signed-off-by: Neetha John <nejo@microsoft.com>
run_command(command, display_cmd=True)
client.set(config_db.INIT_INDICATOR, 1)
run_command('pfcwd start_default', display_cmd=True)
if device_type != 'MgmtToRRouter':
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't it better to check if device_type contains 'Mgmt' ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

as per our discussion, leaving this as is

Signed-off-by: Neetha John <nejo@microsoft.com>
@yxieca
Copy link
Contributor

yxieca commented Nov 7, 2019

retest this please

@yxieca yxieca merged commit e4a5e4c into sonic-net:master Nov 7, 2019
yxieca pushed a commit that referenced this pull request Nov 7, 2019
* Do not start pfcwd for M0 devices

Signed-off-by: Neetha John <nejo@microsoft.com>

* Avoid exiting for device type error

Signed-off-by: Neetha John <nejo@microsoft.com>
@neethajohn neethajohn deleted the no_pfcwd branch November 7, 2019 21:29
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 28, 2022
e98a7af95a9767093904d9e8fd320067163d5f87 (HEAD -> 201911, origin/201911) [syncd] Translate removed RIDs in fdb notification (sonic-net#729)
3ceeae5371eee5b69064fa1af88f51e27caa2d36 [syncd] Process all cases fdb flush notification (sonic-net#726)
115ba0783edf85658fd0329eb23796d758c309f5 fix compile error when compiling with g++-4.8.4 (sonic-net#718)
a67f94d3d91325516069ef8c0d99bdec30bafbce Fix typo at SAI_ATTR_VALUE_TYPE_ACL_FIELD_DATA_UINT32 (sonic-net#662)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants