Skip to content

Commit 1a02b58

Browse files
author
Sangita Maity
committed
Added sample cases to support more alternative speeds and verify regex
Signed-off-by: Sangita Maity <[email protected]>
1 parent 9877186 commit 1a02b58

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/sonic-config-engine/tests/sample_hwsku.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131
"default_brkout_mode": "1x50G(2)+2x25G(2)"
3232
},
3333
"Ethernet40": {
34-
"default_brkout_mode": "1x100G[40G]"
34+
"default_brkout_mode": "1x100G[50G,40G,25G,10G,1G]"
3535
},
3636
"Ethernet44": {
37-
"default_brkout_mode": "2x50G"
37+
"default_brkout_mode": "2x50G[40G,25G,10G,1G]"
3838
},
3939
"Ethernet48": {
4040
"default_brkout_mode": "4x25G[10G]"

src/sonic-config-engine/tests/sample_platform.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@
112112
"index": "11,11,11,11",
113113
"lanes": "40,41,42,43",
114114
"breakout_modes": {
115-
"1x100G[40G]": ["Eth11"],
116-
"2x50G": ["Eth11/1", "Eth11/2"],
115+
"1x100G[50G,40G,25G,10G,1G]": ["Eth11"],
116+
"2x50G[40G,25G,10G,1G]": ["Eth11/1", "Eth11/2"],
117117
"4x25G[10G]": ["Eth11/1", "Eth11/2", "Eth11/3", "Eth11/4"],
118118
"2x25G(2)+1x50G(2)": ["Eth11/1", "Eth11/2", "Eth11/3"],
119119
"1x50G(2)+2x25G(2)": ["Eth11/1", "Eth11/2", "Eth11/3"]
@@ -123,8 +123,8 @@
123123
"index": "12,12,12,12",
124124
"lanes": "44,45,46,47",
125125
"breakout_modes": {
126-
"1x100G[40G]": ["Eth12"],
127-
"2x50G": ["Eth12/1", "Eth12/2"],
126+
"1x100G[50G,40G,25G,10G,1G]": ["Eth12"],
127+
"2x50G[40G,25G,10G,1G]": ["Eth12/1", "Eth12/2"],
128128
"4x25G[10G]": ["Eth12/1", "Eth12/2", "Eth12/3", "Eth12/4"],
129129
"2x25G(2)+1x50G(2)": ["Eth12/1", "Eth12/2", "Eth12/3"],
130130
"1x50G(2)+2x25G(2)": ["Eth12/1", "Eth12/2", "Eth12/3"]

0 commit comments

Comments
 (0)