-
Notifications
You must be signed in to change notification settings - Fork 650
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix all review comments and support python 3
Review comments: - Add testcases for show and config command - Address review comments in db_migrator - Use "size" to represent the size of the PG and "headroom" for xoff - Fix typo Signed-off-by: Stephen Sun <stephens@nvidia.com>
- Loading branch information
Showing
9 changed files
with
231 additions
and
45 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
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
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,108 @@ | ||
show_buffer_configuration="""\ | ||
Pool: egress_lossless_pool | ||
---- -------- | ||
mode dynamic | ||
size 13945824 | ||
type egress | ||
---- -------- | ||
Pool: egress_lossy_pool | ||
---- ------- | ||
mode dynamic | ||
type egress | ||
---- ------- | ||
Pool: ingress_lossless_pool | ||
---- ------- | ||
mode dynamic | ||
type ingress | ||
---- ------- | ||
Pool: ingress_lossy_pool | ||
---- ------- | ||
mode dynamic | ||
type ingress | ||
---- ------- | ||
Profile: ingress_lossy_profile | ||
---------- -------------------------------- | ||
dynamic_th 3 | ||
pool [BUFFER_POOL|ingress_lossy_pool] | ||
size 0 | ||
---------- -------------------------------- | ||
Profile: headroom_profile | ||
---------- ----------------------------------- | ||
dynamic_th 0 | ||
pool [BUFFER_POOL|ingress_lossless_pool] | ||
xon 18432 | ||
xoff 32768 | ||
size 51200 | ||
---------- ----------------------------------- | ||
Profile: alpha_profile | ||
------------- ----------------------------------- | ||
dynamic_th 0 | ||
pool [BUFFER_POOL|ingress_lossless_pool] | ||
headroom_type dynamic | ||
------------- ----------------------------------- | ||
""" | ||
|
||
show_buffer_information_output="""\ | ||
Pool: egress_lossless_pool | ||
---- -------- | ||
mode dynamic | ||
size 13945824 | ||
type egress | ||
---- -------- | ||
Pool: egress_lossy_pool | ||
---- ------- | ||
mode dynamic | ||
size 4580864 | ||
type egress | ||
---- ------- | ||
Pool: ingress_lossless_pool | ||
---- ------- | ||
mode dynamic | ||
size 4580864 | ||
type ingress | ||
---- ------- | ||
Pool: ingress_lossy_pool | ||
---- ------- | ||
mode dynamic | ||
size 4580864 | ||
type ingress | ||
---- ------- | ||
Profile: ingress_lossy_profile | ||
---------- -------------------------------------- | ||
dynamic_th 3 | ||
pool [BUFFER_POOL_TABLE|ingress_lossy_pool] | ||
size 0 | ||
---------- -------------------------------------- | ||
Profile: headroom_profile | ||
---------- ----------------------------------------- | ||
dynamic_th 0 | ||
pool [BUFFER_POOL_TABLE|ingress_lossless_pool] | ||
xon 18432 | ||
xoff 32768 | ||
size 51200 | ||
---------- ----------------------------------------- | ||
""" | ||
|
||
testData = { | ||
'show_buffer_configuration' : [ {'cmd' : ['buffer', 'configuration'], | ||
'rc_output': show_buffer_configuration | ||
} | ||
], | ||
'show_buffer_information' : [ {'cmd' : ['buffer', 'information'], | ||
'rc_output': show_buffer_information_output | ||
} | ||
] | ||
} |
Oops, something went wrong.