Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add buffer profile test (initial config test) #296

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
431 changes: 431 additions & 0 deletions ansible/roles/test/files/buffer_profile/buffers0_exp.json

Large diffs are not rendered by default.

381 changes: 381 additions & 0 deletions ansible/roles/test/files/buffer_profile/buffers1_exp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,381 @@
[
{
"BUFFER_POOL_TABLE:ingress_lossy_pool": {
"size": "6422528",
"type": "ingress",
"mode": "dynamic"
},
"OP": "SET"
},
{
"BUFFER_POOL_TABLE:egress_lossless_pool": {
"size": "7291456",
"type": "egress",
"mode": "dynamic"
},
"OP": "SET"
},
{
"BUFFER_POOL_TABLE:egress_lossy_pool": {
"size": "8254464",
"type": "egress",
"mode": "dynamic"
},
"OP": "SET"
},
{
"BUFFER_PROFILE_TABLE:ingress_lossless_profile": {
"pool":"[BUFFER_POOL_TABLE:ingress_lossless_pool]",
"size":"0",
"dynamic_th":"7"
},
"OP": "SET"
},
{
"BUFFER_PROFILE_TABLE:ingress_lossy_profile": {
"pool":"[BUFFER_POOL_TABLE:ingress_lossy_pool]",
"size":"0",
"dynamic_th":"7"
},
"OP": "SET"
},
{
"BUFFER_PROFILE_TABLE:egress_lossless_profile": {
"pool":"[BUFFER_POOL_TABLE:egress_lossless_pool]",
"size":"1518",
"dynamic_th":"7"
},
"OP": "SET"
},
{
"BUFFER_PROFILE_TABLE:egress_lossy_profile": {
"pool":"[BUFFER_POOL_TABLE:egress_lossy_pool]",
"size":"4096",
"dynamic_th":"7"
},
"OP": "SET"
},
{
"BUFFER_PROFILE_TABLE:pg_lossy_profile": {
"pool":"[BUFFER_POOL_TABLE:ingress_lossy_pool]",
"size":"0",
"dynamic_th":"3"
},
"OP": "SET"
},
{
"BUFFER_PROFILE_TABLE:q_lossless_profile": {
"pool":"[BUFFER_POOL_TABLE:egress_lossless_pool]",
"size":"0",
"dynamic_th":"7"
},
"OP": "SET"
},
{
"BUFFER_PROFILE_TABLE:q_lossy_profile": {
"pool":"[BUFFER_POOL_TABLE:egress_lossy_pool]",
"size":"0",
"dynamic_th":"1"
},
"OP": "SET"
},
{
"BUFFER_PORT_INGRESS_PROFILE_LIST:Ethernet8,Ethernet0,Ethernet4,Ethernet108,Ethernet100,Ethernet104,Ethernet68,Ethernet96,Ethernet124,Ethernet92,Ethernet120,Ethernet52,Ethernet56,Ethernet76,Ethernet72,Ethernet64,Ethernet32,Ethernet16,Ethernet36,Ethernet12,Ethernet88,Ethernet116,Ethernet80,Ethernet112,Ethernet84,Ethernet48,Ethernet44,Ethernet40,Ethernet28,Ethernet60,Ethernet20,Ethernet24": {
"profile_list" : "[BUFFER_PROFILE_TABLE:ingress_lossless_profile],[BUFFER_PROFILE_TABLE:ingress_lossy_profile]"
},
"OP": "SET"
},
{
"BUFFER_PORT_EGRESS_PROFILE_LIST:Ethernet8,Ethernet0,Ethernet4,Ethernet108,Ethernet100,Ethernet104,Ethernet68,Ethernet96,Ethernet124,Ethernet92,Ethernet120,Ethernet52,Ethernet56,Ethernet76,Ethernet72,Ethernet64,Ethernet32,Ethernet16,Ethernet36,Ethernet12,Ethernet88,Ethernet116,Ethernet80,Ethernet112,Ethernet84,Ethernet48,Ethernet44,Ethernet40,Ethernet28,Ethernet60,Ethernet20,Ethernet24": {
"profile_list" : "[BUFFER_PROFILE_TABLE:egress_lossless_profile],[BUFFER_PROFILE_TABLE:egress_lossy_profile]"
},
"OP": "SET"
},



{
"BUFFER_PG_TABLE:Ethernet8:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet0:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_10G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet4:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_25G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet108:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet100:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet104:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet68:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet96:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet124:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet92:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet120:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet52:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet56:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet76:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet72:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet64:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet32:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet16:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_100G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet36:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet12:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_50G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet88:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet116:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet80:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet112:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet84:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet48:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet44:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet40:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet28:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet60:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet20:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_100G_300m_profile]"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet24:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile]"
},
"OP": "SET"
},

{
"BUFFER_PROFILE_TABLE:pg_lossless_40G_300m_profile": {
"pool":"[BUFFER_POOL_TABLE:ingress_lossless_pool]",
"xon":"18432",
"xoff":"75776",
"size":"94208",
"dynamic_th":"1"
},
"OP": "SET"
},
{
"BUFFER_PROFILE_TABLE:pg_lossless_10G_300m_profile": {
"pool":"[BUFFER_POOL_TABLE:ingress_lossless_pool]",
"xon":"18432",
"xoff":"30720",
"size":"49152",
"dynamic_th":"1"
},
"OP": "SET"
},
{
"BUFFER_PROFILE_TABLE:pg_lossless_25G_300m_profile": {
"pool":"[BUFFER_POOL_TABLE:ingress_lossless_pool]",
"xon":"18432",
"xoff":"53248",
"size":"71680",
"dynamic_th":"1"
},
"OP": "SET"
},
{
"BUFFER_PROFILE_TABLE:pg_lossless_100G_300m_profile": {
"pool":"[BUFFER_POOL_TABLE:ingress_lossless_pool]",
"xon":"18432",
"xoff":"165888",
"size":"184320",
"dynamic_th":"1"
},
"OP": "SET"
},
{
"BUFFER_PROFILE_TABLE:pg_lossless_50G_300m_profile": {
"pool":"[BUFFER_POOL_TABLE:ingress_lossless_pool]",
"xon":"18432",
"xoff":"75776",
"size":"94208",
"dynamic_th":"1"
},
"OP": "SET"
},
{
"BUFFER_POOL_TABLE:ingress_lossless_pool": {
"size": "3994022",
"type": "ingress",
"mode": "dynamic"
},
"OP": "SET"
},
{
"BUFFER_PG_TABLE:Ethernet8,Ethernet0,Ethernet4,Ethernet108,Ethernet100,Ethernet104,Ethernet68,Ethernet96,Ethernet124,Ethernet92,Ethernet120,Ethernet52,Ethernet56,Ethernet76,Ethernet72,Ethernet64,Ethernet32,Ethernet16,Ethernet36,Ethernet12,Ethernet88,Ethernet116,Ethernet80,Ethernet112,Ethernet84,Ethernet48,Ethernet44,Ethernet40,Ethernet28,Ethernet60,Ethernet20,Ethernet24:0-1": {
"profile" : "[BUFFER_PROFILE_TABLE:pg_lossy_profile]"
},
"OP": "SET"
},
{
"BUFFER_QUEUE_TABLE:Ethernet8,Ethernet0,Ethernet4,Ethernet108,Ethernet100,Ethernet104,Ethernet68,Ethernet96,Ethernet124,Ethernet92,Ethernet120,Ethernet52,Ethernet56,Ethernet76,Ethernet72,Ethernet64,Ethernet32,Ethernet16,Ethernet36,Ethernet12,Ethernet88,Ethernet116,Ethernet80,Ethernet112,Ethernet84,Ethernet48,Ethernet44,Ethernet40,Ethernet28,Ethernet60,Ethernet20,Ethernet24:3-4": {
"profile" : "[BUFFER_PROFILE_TABLE:q_lossless_profile]"
},
"OP": "SET"
},
{
"BUFFER_QUEUE_TABLE:Ethernet8,Ethernet0,Ethernet4,Ethernet108,Ethernet100,Ethernet104,Ethernet68,Ethernet96,Ethernet124,Ethernet92,Ethernet120,Ethernet52,Ethernet56,Ethernet76,Ethernet72,Ethernet64,Ethernet32,Ethernet16,Ethernet36,Ethernet12,Ethernet88,Ethernet116,Ethernet80,Ethernet112,Ethernet84,Ethernet48,Ethernet44,Ethernet40,Ethernet28,Ethernet60,Ethernet20,Ethernet24:0-1": {
"profile" : "[BUFFER_PROFILE_TABLE:q_lossy_profile]"
},
"OP": "SET"
},
{
"PFC_PRIORITY_TO_PRIORITY_GROUP_MAP_TABLE:AZURE": {
"0": "0",
"1": "1",
"3": "3",
"4": "4"
},
"OP": "SET"
},
{
"PORT_QOS_MAP_TABLE:Ethernet8,Ethernet0,Ethernet4,Ethernet108,Ethernet100,Ethernet104,Ethernet68,Ethernet96,Ethernet124,Ethernet92,Ethernet120,Ethernet52,Ethernet56,Ethernet76,Ethernet72,Ethernet64,Ethernet32,Ethernet16,Ethernet36,Ethernet12,Ethernet88,Ethernet116,Ethernet80,Ethernet112,Ethernet84,Ethernet48,Ethernet44,Ethernet40,Ethernet28,Ethernet60,Ethernet20,Ethernet24": {
"pfc_to_pg_map" : "[PFC_PRIORITY_TO_PRIORITY_GROUP_MAP_TABLE:AZURE]"
},
"OP": "SET"
}
]
Loading