-
Notifications
You must be signed in to change notification settings - Fork 664
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chassis][multi-asic] Make PFC commands use a class (#3057)
What I did This change puts contents originally in pfc/main.py into a class, to support the usage of the multi-asic helper in a future change. This change is required, as multi-asic helper being used expects members self.config_db and self.db to exist when a function with the decorator run_on_multi_asic is called. The multi-asic class helper will be used to add multi-asic support to pfc commands in a following pull request. This is a part of the set of changes being pushed for sonic-net/sonic-buildimage#15148 How I did it Moved contents of PFC commands into a class. There are no functional changes. Co-authored-by: rdjeric <[email protected]> Co-authored-by: Kenneth Cheung <[email protected]>
- Loading branch information
1 parent
b53e0c3
commit 6447308
Showing
3 changed files
with
282 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
pfc_asym_cannot_find_intf = """\ | ||
Interface Asymmetric | ||
----------- ------------ | ||
""" | ||
|
||
pfc_cannot_find_intf = """\ | ||
Cannot find interface Ethernet1234 | ||
""" | ||
|
||
pfc_show_asymmetric_all = """\ | ||
Interface Asymmetric | ||
----------- ------------ | ||
Ethernet0 off | ||
Ethernet4 off | ||
Ethernet8 off | ||
Ethernet12 off | ||
Ethernet16 off | ||
Ethernet20 off | ||
Ethernet24 off | ||
Ethernet28 off | ||
Ethernet32 off | ||
Ethernet36 off | ||
Ethernet40 off | ||
Ethernet44 off | ||
Ethernet48 off | ||
Ethernet52 off | ||
Ethernet56 off | ||
Ethernet60 off | ||
Ethernet64 off | ||
Ethernet68 off | ||
Ethernet72 off | ||
Ethernet76 off | ||
Ethernet80 off | ||
Ethernet84 off | ||
Ethernet88 off | ||
Ethernet92 off | ||
Ethernet96 off | ||
Ethernet100 off | ||
Ethernet104 off | ||
Ethernet108 off | ||
Ethernet112 off | ||
Ethernet116 off | ||
Ethernet120 off | ||
Ethernet124 off | ||
""" | ||
|
||
pfc_show_asymmetric_intf = """\ | ||
Interface Asymmetric | ||
----------- ------------ | ||
Ethernet0 off | ||
""" | ||
|
||
pfc_show_priority_all = """\ | ||
Interface Lossless priorities | ||
----------- --------------------- | ||
Ethernet0 3,4 | ||
Ethernet4 3,4 | ||
""" | ||
|
||
pfc_show_priority_intf = """\ | ||
Interface Lossless priorities | ||
----------- --------------------- | ||
Ethernet0 3,4 | ||
""" | ||
|
||
pfc_config_priority_on = """\ | ||
Interface Lossless priorities | ||
----------- --------------------- | ||
Ethernet0 3,4,5 | ||
""" |
Oops, something went wrong.