Skip to content

Commit 574ca9b

Browse files
committed
Add Nokia H6 to GCU
1 parent 5052e02 commit 574ca9b

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

generic_config_updater/gcu_field_operation_validators.conf.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"th4": [ "Nokia-IXR7220-H4-64D", "Nokia-IXR7220-H4-32D" ],
3333
"th5": [ "Nokia-IXR7220-H5-64D", "Arista-7060X6-64DE", "Arista-7060X6-64PE", "Arista-7060X6-64PE-C224O8", "Arista-7060X6-64PE-C256S2", "Nokia-IXR7220-H5-64O", "Nokia-IXR7220-H5-32D",
3434
"Arista-7060X6-64PE-B-C512S2", "Arista-7060X6-64PE-B-C448O16", "Arista-7060X6-64PE-B-O128", "Arista-7060X6-64PE-B-O128S2", "Arista-7060X6-16PE-384C-B-O128S2"],
35+
"th6": [ "Nokia-IXR7220-H6-64", "Nokia-IXR7220-H6-128"],
3536
"td2": [ "Force10-S6000", "Force10-S6000-Q24S32", "Arista-7050-QX32", "Arista-7050-QX-32S", "Nexus-3164", "Arista-7050QX32S-Q32" ],
3637
"td3": [ "Arista-7050CX3-32C-C32", "Arista-7050CX3-32S-C32", "Arista-7050CX3-32S-D48C8", "Arista-7050CX3-32S-C28S4" ],
3738
"td4": [ "Nokia-IXR7220-D4-36D" ],
@@ -69,6 +70,7 @@
6970
"th3": "20240500",
7071
"th4": "20240500",
7172
"th5": "20240500",
73+
"th6": "20250500",
7274
"td3": "20201200",
7375
"td4": "20241100",
7476
"q2c+": "20241100",
@@ -104,6 +106,7 @@
104106
"th3": "20240500",
105107
"th4": "20240500",
106108
"th5": "20240500",
109+
"th6": "20250500",
107110
"td3": "20221100",
108111
"td4": "20241100",
109112
"q2c+": "20241100",
@@ -140,6 +143,7 @@
140143
"th3": "20240500",
141144
"th4": "20240500",
142145
"th5": "20240500",
146+
"th6": "20250500",
143147
"td3": "20201200",
144148
"td4": "20241100",
145149
"q2c+": "20241100",
@@ -168,6 +172,7 @@
168172
"th3": "20240500",
169173
"th4": "20240500",
170174
"th5": "20240500",
175+
"th6": "20250500",
171176
"td3": "20221100",
172177
"td4": "20241100",
173178
"q2c+": "20241100",
@@ -187,7 +192,8 @@
187192
"platforms": {
188193
"spc4": "20241200",
189194
"spc5": "20241200",
190-
"th5": "20241200"
195+
"th5": "20241200",
196+
"th6": "20250500"
191197
}
192198
}
193199
}
@@ -216,6 +222,7 @@
216222
"th3": "20240500",
217223
"th4": "20240500",
218224
"th5": "20240500",
225+
"th6": "20250500",
219226
"td3": "20201200",
220227
"td4": "20241100",
221228
"q2c+": "20241100",

tests/generic_config_updater/field_operation_validator_test.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,15 @@ def test_get_asic_th5(self, mock_popen, mock_get_sonic_version_info):
705705
for scope in ["localhost", "asic0"]:
706706
self.assertEqual(fov.get_asic_name(), "th5")
707707

708+
@patch('sonic_py_common.device_info.get_sonic_version_info')
709+
@patch('subprocess.Popen')
710+
def test_get_asic_th6(self, mock_popen, mock_get_sonic_version_info):
711+
mock_get_sonic_version_info.return_value = {'asic_type': 'broadcom'}
712+
mock_popen.return_value = mock.Mock()
713+
mock_popen.return_value.communicate.return_value = ["Nokia-IXR7220-H6-128", 0]
714+
for scope in ["localhost", "asic0"]:
715+
self.assertEqual(fov.get_asic_name(), "th6")
716+
708717
@patch('sonic_py_common.device_info.get_sonic_version_info')
709718
@patch('subprocess.Popen')
710719
def test_get_asic_td2(self, mock_popen, mock_get_sonic_version_info):

0 commit comments

Comments
 (0)