diff --git a/device/micas/x86_64-micas_m2-w6940-128x1-fr4-r0/M2-W6940-128X1-FR4/hwsku.json b/device/micas/x86_64-micas_m2-w6940-128x1-fr4-r0/M2-W6940-128X1-FR4/hwsku.json index 76c4f2f08d..079fb70185 100644 --- a/device/micas/x86_64-micas_m2-w6940-128x1-fr4-r0/M2-W6940-128X1-FR4/hwsku.json +++ b/device/micas/x86_64-micas_m2-w6940-128x1-fr4-r0/M2-W6940-128X1-FR4/hwsku.json @@ -1,388 +1,324 @@ { "interfaces": { "Ethernet0": { - "default_brkout_mode": "1x400G" - }, - "Ethernet1": { - "default_brkout_mode": "1x400G" - }, - "Ethernet2": { - "default_brkout_mode": "1x400G" - }, - "Ethernet3": { - "default_brkout_mode": "1x400G" - }, - "Ethernet4": { - "default_brkout_mode": "1x400G" - }, - "Ethernet5": { - "default_brkout_mode": "1x400G" - }, - "Ethernet6": { - "default_brkout_mode": "1x400G" - }, - "Ethernet7": { - "default_brkout_mode": "1x400G" + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" }, "Ethernet8": { - "default_brkout_mode": "1x400G" - }, - "Ethernet9": { - "default_brkout_mode": "1x400G" - }, - "Ethernet10": { - "default_brkout_mode": "1x400G" - }, - "Ethernet11": { - "default_brkout_mode": "1x400G" - }, - "Ethernet12": { - "default_brkout_mode": "1x400G" - }, - "Ethernet13": { - "default_brkout_mode": "1x400G" - }, - "Ethernet14": { - "default_brkout_mode": "1x400G" - }, - "Ethernet15": { - "default_brkout_mode": "1x400G" + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" }, "Ethernet16": { - "default_brkout_mode": "1x400G" - }, - "Ethernet17": { - "default_brkout_mode": "1x400G" - }, - "Ethernet18": { - "default_brkout_mode": "1x400G" - }, - "Ethernet19": { - "default_brkout_mode": "1x400G" - }, - "Ethernet20": { - "default_brkout_mode": "1x400G" - }, - "Ethernet21": { - "default_brkout_mode": "1x400G" - }, - "Ethernet22": { - "default_brkout_mode": "1x400G" - }, - "Ethernet23": { - "default_brkout_mode": "1x400G" + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" }, "Ethernet24": { - "default_brkout_mode": "1x400G" - }, - "Ethernet25": { - "default_brkout_mode": "1x400G" - }, - "Ethernet26": { - "default_brkout_mode": "1x400G" - }, - "Ethernet27": { - "default_brkout_mode": "1x400G" - }, - "Ethernet28": { - "default_brkout_mode": "1x400G" - }, - "Ethernet29": { - "default_brkout_mode": "1x400G" - }, - "Ethernet30": { - "default_brkout_mode": "1x400G" - }, - "Ethernet31": { - "default_brkout_mode": "1x400G" + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" }, "Ethernet32": { - "default_brkout_mode": "1x400G" - }, - "Ethernet33": { - "default_brkout_mode": "1x400G" - }, - "Ethernet34": { - "default_brkout_mode": "1x400G" - }, - "Ethernet35": { - "default_brkout_mode": "1x400G" - }, - "Ethernet36": { - "default_brkout_mode": "1x400G" - }, - "Ethernet37": { - "default_brkout_mode": "1x400G" - }, - "Ethernet38": { - "default_brkout_mode": "1x400G" - }, - "Ethernet39": { - "default_brkout_mode": "1x400G" + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" }, "Ethernet40": { - "default_brkout_mode": "1x400G" - }, - "Ethernet41": { - "default_brkout_mode": "1x400G" - }, - "Ethernet42": { - "default_brkout_mode": "1x400G" - }, - "Ethernet43": { - "default_brkout_mode": "1x400G" - }, - "Ethernet44": { - "default_brkout_mode": "1x400G" - }, - "Ethernet45": { - "default_brkout_mode": "1x400G" - }, - "Ethernet46": { - "default_brkout_mode": "1x400G" - }, - "Ethernet47": { - "default_brkout_mode": "1x400G" + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" }, "Ethernet48": { - "default_brkout_mode": "1x400G" - }, - "Ethernet49": { - "default_brkout_mode": "1x400G" - }, - "Ethernet50": { - "default_brkout_mode": "1x400G" - }, - "Ethernet51": { - "default_brkout_mode": "1x400G" - }, - "Ethernet52": { - "default_brkout_mode": "1x400G" - }, - "Ethernet53": { - "default_brkout_mode": "1x400G" - }, - "Ethernet54": { - "default_brkout_mode": "1x400G" - }, - "Ethernet55": { - "default_brkout_mode": "1x400G" + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" }, "Ethernet56": { - "default_brkout_mode": "1x400G" - }, - "Ethernet57": { - "default_brkout_mode": "1x400G" - }, - "Ethernet58": { - "default_brkout_mode": "1x400G" - }, - "Ethernet59": { - "default_brkout_mode": "1x400G" - }, - "Ethernet60": { - "default_brkout_mode": "1x400G" - }, - "Ethernet61": { - "default_brkout_mode": "1x400G" - }, - "Ethernet62": { - "default_brkout_mode": "1x400G" - }, - "Ethernet63": { - "default_brkout_mode": "1x400G" + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" }, "Ethernet64": { - "default_brkout_mode": "1x400G" - }, - "Ethernet65": { - "default_brkout_mode": "1x400G" - }, - "Ethernet66": { - "default_brkout_mode": "1x400G" - }, - "Ethernet67": { - "default_brkout_mode": "1x400G" - }, - "Ethernet68": { - "default_brkout_mode": "1x400G" - }, - "Ethernet69": { - "default_brkout_mode": "1x400G" - }, - "Ethernet70": { - "default_brkout_mode": "1x400G" - }, - "Ethernet71": { - "default_brkout_mode": "1x400G" + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" }, "Ethernet72": { - "default_brkout_mode": "1x400G" - }, - "Ethernet73": { - "default_brkout_mode": "1x400G" - }, - "Ethernet74": { - "default_brkout_mode": "1x400G" - }, - "Ethernet75": { - "default_brkout_mode": "1x400G" - }, - "Ethernet76": { - "default_brkout_mode": "1x400G" - }, - "Ethernet77": { - "default_brkout_mode": "1x400G" - }, - "Ethernet78": { - "default_brkout_mode": "1x400G" - }, - "Ethernet79": { - "default_brkout_mode": "1x400G" + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" }, "Ethernet80": { - "default_brkout_mode": "1x400G" - }, - "Ethernet81": { - "default_brkout_mode": "1x400G" - }, - "Ethernet82": { - "default_brkout_mode": "1x400G" - }, - "Ethernet83": { - "default_brkout_mode": "1x400G" - }, - "Ethernet84": { - "default_brkout_mode": "1x400G" - }, - "Ethernet85": { - "default_brkout_mode": "1x400G" - }, - "Ethernet86": { - "default_brkout_mode": "1x400G" - }, - "Ethernet87": { - "default_brkout_mode": "1x400G" + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" }, "Ethernet88": { - "default_brkout_mode": "1x400G" - }, - "Ethernet89": { - "default_brkout_mode": "1x400G" - }, - "Ethernet90": { - "default_brkout_mode": "1x400G" - }, - "Ethernet91": { - "default_brkout_mode": "1x400G" - }, - "Ethernet92": { - "default_brkout_mode": "1x400G" - }, - "Ethernet93": { - "default_brkout_mode": "1x400G" - }, - "Ethernet94": { - "default_brkout_mode": "1x400G" - }, - "Ethernet95": { - "default_brkout_mode": "1x400G" + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" }, "Ethernet96": { - "default_brkout_mode": "1x400G" - }, - "Ethernet97": { - "default_brkout_mode": "1x400G" - }, - "Ethernet98": { - "default_brkout_mode": "1x400G" - }, - "Ethernet99": { - "default_brkout_mode": "1x400G" - }, - "Ethernet100": { - "default_brkout_mode": "1x400G" - }, - "Ethernet101": { - "default_brkout_mode": "1x400G" - }, - "Ethernet102": { - "default_brkout_mode": "1x400G" - }, - "Ethernet103": { - "default_brkout_mode": "1x400G" + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" }, "Ethernet104": { - "default_brkout_mode": "1x400G" - }, - "Ethernet105": { - "default_brkout_mode": "1x400G" - }, - "Ethernet106": { - "default_brkout_mode": "1x400G" - }, - "Ethernet107": { - "default_brkout_mode": "1x400G" - }, - "Ethernet108": { - "default_brkout_mode": "1x400G" - }, - "Ethernet109": { - "default_brkout_mode": "1x400G" - }, - "Ethernet110": { - "default_brkout_mode": "1x400G" - }, - "Ethernet111": { - "default_brkout_mode": "1x400G" + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" }, "Ethernet112": { - "default_brkout_mode": "1x400G" - }, - "Ethernet113": { - "default_brkout_mode": "1x400G" - }, - "Ethernet114": { - "default_brkout_mode": "1x400G" - }, - "Ethernet115": { - "default_brkout_mode": "1x400G" - }, - "Ethernet116": { - "default_brkout_mode": "1x400G" - }, - "Ethernet117": { - "default_brkout_mode": "1x400G" - }, - "Ethernet118": { - "default_brkout_mode": "1x400G" - }, - "Ethernet119": { - "default_brkout_mode": "1x400G" + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" }, "Ethernet120": { - "default_brkout_mode": "1x400G" - }, - "Ethernet121": { - "default_brkout_mode": "1x400G" - }, - "Ethernet122": { - "default_brkout_mode": "1x400G" - }, - "Ethernet123": { - "default_brkout_mode": "1x400G" - }, - "Ethernet124": { - "default_brkout_mode": "1x400G" - }, - "Ethernet125": { - "default_brkout_mode": "1x400G" - }, - "Ethernet126": { - "default_brkout_mode": "1x400G" - }, - "Ethernet127": { - "default_brkout_mode": "1x400G" + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet128": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet136": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet144": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet152": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet160": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet168": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet176": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet184": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet192": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet200": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet208": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet216": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet224": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet232": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet240": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet248": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet256": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet264": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet272": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet280": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet288": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet296": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet304": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet312": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet320": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet328": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet336": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet344": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet352": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet360": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet368": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet376": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet384": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet392": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet400": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet408": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet416": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet424": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet432": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet440": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet448": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet456": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet464": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet472": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet480": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet488": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet496": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" + }, + "Ethernet504": { + "default_brkout_mode": "2x400G", + "autoneg": "off", + "fec": "rs" } } } diff --git a/device/micas/x86_64-micas_m2-w6940-128x1-fr4-r0/M2-W6940-128X1-FR4/port_config.ini b/device/micas/x86_64-micas_m2-w6940-128x1-fr4-r0/M2-W6940-128X1-FR4/port_config.ini index f24ea258a5..3dfd547c4d 100644 --- a/device/micas/x86_64-micas_m2-w6940-128x1-fr4-r0/M2-W6940-128X1-FR4/port_config.ini +++ b/device/micas/x86_64-micas_m2-w6940-128x1-fr4-r0/M2-W6940-128X1-FR4/port_config.ini @@ -1,129 +1,65 @@ -# name lanes alias index speed admin_status fec -Ethernet0 1,2,3,4 etp1 1 400000 down rs -Ethernet1 5,6,7,8 etp2 2 400000 down rs -Ethernet2 9,10,11,12 etp3 3 400000 down rs -Ethernet3 13,14,15,16 etp4 4 400000 down rs -Ethernet4 17,18,19,20 etp5 5 400000 down rs -Ethernet5 21,22,23,24 etp6 6 400000 down rs -Ethernet6 25,26,27,28 etp7 7 400000 down rs -Ethernet7 29,30,31,32 etp8 8 400000 down rs -Ethernet8 33,34,35,36 etp9 9 400000 down rs -Ethernet9 37,38,39,40 etp10 10 400000 down rs -Ethernet10 41,42,43,44 etp11 11 400000 down rs -Ethernet11 45,46,47,48 etp12 12 400000 down rs -Ethernet12 49,50,51,52 etp13 13 400000 down rs -Ethernet13 53,54,55,56 etp14 14 400000 down rs -Ethernet14 57,58,59,60 etp15 15 400000 down rs -Ethernet15 61,62,63,64 etp16 16 400000 down rs -Ethernet16 65,66,67,68 etp17 17 400000 down rs -Ethernet17 69,70,71,72 etp18 18 400000 down rs -Ethernet18 73,74,75,76 etp19 19 400000 down rs -Ethernet19 77,78,79,80 etp20 20 400000 down rs -Ethernet20 81,82,83,84 etp21 21 400000 down rs -Ethernet21 85,86,87,88 etp22 22 400000 down rs -Ethernet22 89,90,91,92 etp23 23 400000 down rs -Ethernet23 93,94,95,96 etp24 24 400000 down rs -Ethernet24 97,98,99,100 etp25 25 400000 down rs -Ethernet25 101,102,103,104 etp26 26 400000 down rs -Ethernet26 105,106,107,108 etp27 27 400000 down rs -Ethernet27 109,110,111,112 etp28 28 400000 down rs -Ethernet28 113,114,115,116 etp29 29 400000 down rs -Ethernet29 117,118,119,120 etp30 30 400000 down rs -Ethernet30 121,122,123,124 etp31 31 400000 down rs -Ethernet31 125,126,127,128 etp32 32 400000 down rs -Ethernet32 129,130,131,132 etp33 33 400000 down rs -Ethernet33 133,134,135,136 etp34 34 400000 down rs -Ethernet34 137,138,139,140 etp35 35 400000 down rs -Ethernet35 141,142,143,144 etp36 36 400000 down rs -Ethernet36 145,146,147,148 etp37 37 400000 down rs -Ethernet37 149,150,151,152 etp38 38 400000 down rs -Ethernet38 153,154,155,156 etp39 39 400000 down rs -Ethernet39 157,158,159,160 etp40 40 400000 down rs -Ethernet40 161,162,163,164 etp41 41 400000 down rs -Ethernet41 165,166,167,168 etp42 42 400000 down rs -Ethernet42 169,170,171,172 etp43 43 400000 down rs -Ethernet43 173,174,175,176 etp44 44 400000 down rs -Ethernet44 177,178,179,180 etp45 45 400000 down rs -Ethernet45 181,182,183,184 etp46 46 400000 down rs -Ethernet46 185,186,187,188 etp47 47 400000 down rs -Ethernet47 189,190,191,192 etp48 48 400000 down rs -Ethernet48 193,194,195,196 etp49 49 400000 down rs -Ethernet49 197,198,199,200 etp50 50 400000 down rs -Ethernet50 201,202,203,204 etp51 51 400000 down rs -Ethernet51 205,206,207,208 etp52 52 400000 down rs -Ethernet52 209,210,211,212 etp53 53 400000 down rs -Ethernet53 213,214,215,216 etp54 54 400000 down rs -Ethernet54 217,218,219,220 etp55 55 400000 down rs -Ethernet55 221,222,223,224 etp56 56 400000 down rs -Ethernet56 225,226,227,228 etp57 57 400000 down rs -Ethernet57 229,230,231,232 etp58 58 400000 down rs -Ethernet58 233,234,235,236 etp59 59 400000 down rs -Ethernet59 237,238,239,240 etp60 60 400000 down rs -Ethernet60 241,242,243,244 etp61 61 400000 down rs -Ethernet61 245,246,247,248 etp62 62 400000 down rs -Ethernet62 249,250,251,252 etp63 63 400000 down rs -Ethernet63 253,254,255,256 etp64 64 400000 down rs -Ethernet64 257,258,259,260 etp65 65 400000 down rs -Ethernet65 261,262,263,264 etp66 66 400000 down rs -Ethernet66 265,266,267,268 etp67 67 400000 down rs -Ethernet67 269,270,271,272 etp68 68 400000 down rs -Ethernet68 273,274,275,276 etp69 69 400000 down rs -Ethernet69 277,278,279,280 etp70 70 400000 down rs -Ethernet70 281,282,283,284 etp71 71 400000 down rs -Ethernet71 285,286,287,288 etp72 72 400000 down rs -Ethernet72 289,290,291,292 etp73 73 400000 down rs -Ethernet73 293,294,295,296 etp74 74 400000 down rs -Ethernet74 297,298,299,300 etp75 75 400000 down rs -Ethernet75 301,302,303,304 etp76 76 400000 down rs -Ethernet76 305,306,307,308 etp77 77 400000 down rs -Ethernet77 309,310,311,312 etp78 78 400000 down rs -Ethernet78 313,314,315,316 etp79 79 400000 down rs -Ethernet79 317,318,319,320 etp80 80 400000 down rs -Ethernet80 321,322,323,324 etp81 81 400000 down rs -Ethernet81 325,326,327,328 etp82 82 400000 down rs -Ethernet82 329,330,331,332 etp83 83 400000 down rs -Ethernet83 333,334,335,336 etp84 84 400000 down rs -Ethernet84 337,338,339,340 etp85 85 400000 down rs -Ethernet85 341,342,343,344 etp86 86 400000 down rs -Ethernet86 345,346,347,348 etp87 87 400000 down rs -Ethernet87 349,350,351,352 etp88 88 400000 down rs -Ethernet88 353,354,355,356 etp89 89 400000 down rs -Ethernet89 357,358,359,360 etp90 90 400000 down rs -Ethernet90 361,362,363,364 etp91 91 400000 down rs -Ethernet91 365,366,367,368 etp92 92 400000 down rs -Ethernet92 369,370,371,372 etp93 93 400000 down rs -Ethernet93 373,374,375,376 etp94 94 400000 down rs -Ethernet94 377,378,379,380 etp95 95 400000 down rs -Ethernet95 381,382,383,384 etp96 96 400000 down rs -Ethernet96 385,386,387,388 etp97 97 400000 down rs -Ethernet97 389,390,391,392 etp98 98 400000 down rs -Ethernet98 393,394,395,396 etp99 99 400000 down rs -Ethernet99 397,398,399,400 etp100 100 400000 down rs -Ethernet100 401,402,403,404 etp101 101 400000 down rs -Ethernet101 405,406,407,408 etp102 102 400000 down rs -Ethernet102 409,410,411,412 etp103 103 400000 down rs -Ethernet103 413,414,415,416 etp104 104 400000 down rs -Ethernet104 417,418,419,420 etp105 105 400000 down rs -Ethernet105 421,422,423,424 etp106 106 400000 down rs -Ethernet106 425,426,427,428 etp107 107 400000 down rs -Ethernet107 429,430,431,432 etp108 108 400000 down rs -Ethernet108 433,434,435,436 etp109 109 400000 down rs -Ethernet109 437,438,439,440 etp110 110 400000 down rs -Ethernet110 441,442,443,444 etp111 111 400000 down rs -Ethernet111 445,446,447,448 etp112 112 400000 down rs -Ethernet112 449,450,451,452 etp113 113 400000 down rs -Ethernet113 453,454,455,456 etp114 114 400000 down rs -Ethernet114 457,458,459,460 etp115 115 400000 down rs -Ethernet115 461,462,463,464 etp116 116 400000 down rs -Ethernet116 465,466,467,468 etp117 117 400000 down rs -Ethernet117 469,470,471,472 etp118 118 400000 down rs -Ethernet118 473,474,475,476 etp119 119 400000 down rs -Ethernet119 477,478,479,480 etp120 120 400000 down rs -Ethernet120 481,482,483,484 etp121 121 400000 down rs -Ethernet121 485,486,487,488 etp122 122 400000 down rs -Ethernet122 489,490,491,492 etp123 123 400000 down rs -Ethernet123 493,494,495,496 etp124 124 400000 down rs -Ethernet124 497,498,499,500 etp125 125 400000 down rs -Ethernet125 501,502,503,504 etp126 126 400000 down rs -Ethernet126 505,506,507,508 etp127 127 400000 down rs -Ethernet127 509,510,511,512 etp128 128 400000 down rs +# name lanes alias index speed admin_status fec +Ethernet0 1,2,3,4,5,6,7,8 etp1 1 800000 down rs +Ethernet8 9,10,11,12,13,14,15,16 etp2 2 800000 down rs +Ethernet16 17,18,19,20,21,22,23,24 etp3 3 800000 down rs +Ethernet24 25,26,27,28,29,30,31,32 etp4 4 800000 down rs +Ethernet32 33,34,35,36,37,38,39,40 etp5 5 800000 down rs +Ethernet40 41,42,43,44,45,46,47,48 etp6 6 800000 down rs +Ethernet48 49,50,51,52,53,54,55,56 etp7 7 800000 down rs +Ethernet56 57,58,59,60,61,62,63,64 etp8 8 800000 down rs +Ethernet64 65,66,67,68,69,70,71,72 etp9 9 800000 down rs +Ethernet72 73,74,75,76,77,78,79,80 etp10 10 800000 down rs +Ethernet80 81,82,83,84,85,86,87,88 etp11 11 800000 down rs +Ethernet88 89,90,91,92,93,94,95,96 etp12 12 800000 down rs +Ethernet96 97,98,99,100,101,102,103,104 etp13 13 800000 down rs +Ethernet104 105,106,107,108,109,110,111,112 etp14 14 800000 down rs +Ethernet112 113,114,115,116,117,118,119,120 etp15 15 800000 down rs +Ethernet120 121,122,123,124,125,126,127,128 etp16 16 800000 down rs +Ethernet128 129,130,131,132,133,134,135,136 etp17 17 800000 down rs +Ethernet136 137,138,139,140,141,142,143,144 etp18 18 800000 down rs +Ethernet144 145,146,147,148,149,150,151,152 etp19 19 800000 down rs +Ethernet152 153,154,155,156,157,158,159,160 etp20 20 800000 down rs +Ethernet160 161,162,163,164,165,166,167,168 etp21 21 800000 down rs +Ethernet168 169,170,171,172,173,174,175,176 etp22 22 800000 down rs +Ethernet176 177,178,179,180,181,182,183,184 etp23 23 800000 down rs +Ethernet184 185,186,187,188,189,190,191,192 etp24 24 800000 down rs +Ethernet192 193,194,195,196,197,198,199,200 etp25 25 800000 down rs +Ethernet200 201,202,203,204,205,206,207,208 etp26 26 800000 down rs +Ethernet208 209,210,211,212,213,214,215,216 etp27 27 800000 down rs +Ethernet216 217,218,219,220,221,222,223,224 etp28 28 800000 down rs +Ethernet224 225,226,227,228,229,230,231,232 etp29 29 800000 down rs +Ethernet232 233,234,235,236,237,238,239,240 etp30 30 800000 down rs +Ethernet240 241,242,243,244,245,246,247,248 etp31 31 800000 down rs +Ethernet248 249,250,251,252,253,254,255,256 etp32 32 800000 down rs +Ethernet256 257,258,259,260,261,262,263,264 etp33 33 800000 down rs +Ethernet264 265,266,267,268,269,270,271,272 etp34 34 800000 down rs +Ethernet272 273,274,275,276,277,278,279,280 etp35 35 800000 down rs +Ethernet280 281,282,283,284,285,286,287,288 etp36 36 800000 down rs +Ethernet288 289,290,291,292,293,294,295,296 etp37 37 800000 down rs +Ethernet296 297,298,299,300,301,302,303,304 etp38 38 800000 down rs +Ethernet304 305,306,307,308,309,310,311,312 etp39 39 800000 down rs +Ethernet312 313,314,315,316,317,318,319,320 etp40 40 800000 down rs +Ethernet320 321,322,323,324,325,326,327,328 etp41 41 800000 down rs +Ethernet328 329,330,331,332,333,334,335,336 etp42 42 800000 down rs +Ethernet336 337,338,339,340,341,342,343,344 etp43 43 800000 down rs +Ethernet344 345,346,347,348,349,350,351,352 etp44 44 800000 down rs +Ethernet352 353,354,355,356,357,358,359,360 etp45 45 800000 down rs +Ethernet360 361,362,363,364,365,366,367,368 etp46 46 800000 down rs +Ethernet368 369,370,371,372,373,374,375,376 etp47 47 800000 down rs +Ethernet376 377,378,379,380,381,382,383,384 etp48 48 800000 down rs +Ethernet384 385,386,387,388,389,390,391,392 etp49 49 800000 down rs +Ethernet392 393,394,395,396,397,398,399,400 etp50 50 800000 down rs +Ethernet400 401,402,403,404,405,406,407,408 etp51 51 800000 down rs +Ethernet408 409,410,411,412,413,414,415,416 etp52 52 800000 down rs +Ethernet416 417,418,419,420,421,422,423,424 etp53 53 800000 down rs +Ethernet424 425,426,427,428,429,430,431,432 etp54 54 800000 down rs +Ethernet432 433,434,435,436,437,438,439,440 etp55 55 800000 down rs +Ethernet440 441,442,443,444,445,446,447,448 etp56 56 800000 down rs +Ethernet448 449,450,451,452,453,454,455,456 etp57 57 800000 down rs +Ethernet456 457,458,459,460,461,462,463,464 etp58 58 800000 down rs +Ethernet464 465,466,467,468,469,470,471,472 etp59 59 800000 down rs +Ethernet472 473,474,475,476,477,478,479,480 etp60 60 800000 down rs +Ethernet480 481,482,483,484,485,486,487,488 etp61 61 800000 down rs +Ethernet488 489,490,491,492,493,494,495,496 etp62 62 800000 down rs +Ethernet496 497,498,499,500,501,502,503,504 etp63 63 800000 down rs +Ethernet504 505,506,507,508,509,510,511,512 etp64 64 800000 down rs diff --git a/device/micas/x86_64-micas_m2-w6940-128x1-fr4-r0/platform.json b/device/micas/x86_64-micas_m2-w6940-128x1-fr4-r0/platform.json index a3cf2b61a9..407d3f23bd 100644 --- a/device/micas/x86_64-micas_m2-w6940-128x1-fr4-r0/platform.json +++ b/device/micas/x86_64-micas_m2-w6940-128x1-fr4-r0/platform.json @@ -1,6 +1,848 @@ { "chassis": { - "name": "M2-W6940-64X1-FR4" + "name": "M2-W6940-64X1-FR4", + "thermal_manager": false, + "status_led": { + "controllable": false, + "colors": ["green", "blinking_green", "amber", "blinking_amber"] + }, + "components": [ + { + "name": "CPU CPLD" + }, + { + "name": "SCM CPLD" + }, + { + "name": "MCB CPLD" + }, + { + "name": "SMB CPLD" + }, + { + "name": "FCB_T CPLD" + }, + { + "name": "FCB_B CPLD" + }, + { + "name": "IOB FPGA" + }, + { + "name": "DOM FPGA" + }, + { + "name": "BIOS" + } + ], + "fans": [ + { + "name": "Fantray1_1", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false, + "colors": ["off", "red", "amber", "green"] + } + }, + { + "name": "Fantray1_2", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false, + "colors": ["off", "red", "amber", "green"] + } + }, + { + "name": "Fantray2_1", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false, + "colors": ["off", "red", "amber", "green"] + } + }, + { + "name": "Fantray2_2", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false, + "colors": ["off", "red", "amber", "green"] + } + }, + { + "name": "Fantray3_1", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false, + "colors": ["off", "red", "amber", "green"] + } + }, + { + "name": "Fantray3_2", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false, + "colors": ["off", "red", "amber", "green"] + } + }, + { + "name": "Fantray4_1", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false, + "colors": ["off", "red", "amber", "green"] + } + }, + { + "name": "Fantray4_2", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false, + "colors": ["off", "red", "amber", "green"] + } + }, + { + "name": "Fantray5_1", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false, + "colors": ["off", "red", "amber", "green"] + } + }, + { + "name": "Fantray5_2", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false, + "colors": ["off", "red", "amber", "green"] + } + }, + { + "name": "Fantray6_1", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false, + "colors": ["off", "red", "amber", "green"] + } + }, + { + "name": "Fantray6_2", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false, + "colors": ["off", "red", "amber", "green"] + } + }, + { + "name": "Fantray7_1", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false, + "colors": ["off", "red", "amber", "green"] + } + }, + { + "name": "Fantray7_2", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false, + "colors": ["off", "red", "amber", "green"] + } + }, + { + "name": "Fantray8_1", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false, + "colors": ["off", "red", "amber", "green"] + } + }, + { + "name": "Fantray8_2", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false, + "colors": ["off", "red", "amber", "green"] + } + } + ], + "fan_drawers":[ + { + "name": "Fantray1", + "num_fans" : 2, + "status_led": { + "controllable": false, + "colors": ["amber", "green", "off"] + }, + "fans": [ + { + "name": "Fantray1_1", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false + } + }, + { + "name": "Fantray1_2", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false + } + } + ] + }, + { + "name": "Fantray2", + "num_fans" : 2, + "status_led": { + "controllable": false, + "colors": ["amber", "green", "off"] + }, + "fans": [ + { + "name": "Fantray2_1", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false + } + }, + { + "name": "Fantray2_2", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false + } + } + ] + }, + { + "name": "Fantray3", + "num_fans" : 2, + "status_led": { + "controllable": false, + "colors": ["amber", "green", "off"] + }, + "fans": [ + { + "name": "Fantray3_1", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false + } + }, + { + "name": "Fantray3_2", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false + } + } + ] + }, + { + "name": "Fantray4", + "num_fans" : 2, + "status_led": { + "controllable": false, + "colors": ["amber", "green", "off"] + }, + "fans": [ + { + "name": "Fantray4_1", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false + } + }, + { + "name": "Fantray4_2", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false + } + } + ] + }, + { + "name": "Fantray5", + "num_fans" : 2, + "status_led": { + "controllable": false, + "colors": ["amber", "green", "off"] + }, + "fans": [ + { + "name": "Fantray5_1", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false + } + }, + { + "name": "Fantray5_2", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false + } + } + ] + }, + { + "name": "Fantray6", + "num_fans" : 2, + "status_led": { + "controllable": false, + "colors": ["amber", "green", "off"] + }, + "fans": [ + { + "name": "Fantray6_1", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false + } + }, + { + "name": "Fantray6_2", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false + } + } + ] + }, + { + "name": "Fantray7", + "num_fans" : 2, + "status_led": { + "controllable": false, + "colors": ["amber", "green", "off"] + }, + "fans": [ + { + "name": "Fantray7_1", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false + } + }, + { + "name": "Fantray7_2", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false + } + } + ] + }, + { + "name": "Fantray8", + "num_fans" : 2, + "status_led": { + "controllable": false, + "colors": ["amber", "green", "off"] + }, + "fans": [ + { + "name": "Fantray8_1", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false + } + }, + { + "name": "Fantray8_2", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false + } + } + ] + } + ], + "psus": [ + { + "name": "PSU1", + "voltage": true, + "current": true, + "power": true, + "max_power": false, + "voltage_high_threshold": true, + "voltage_low_threshold": true, + "temperature": true, + "fans_target_speed": true, + "status_led": { + "controllable": false + }, + "fans": [ + { + "name": "PSU1_FAN1", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false + } + } + ] + }, + { + "name": "PSU2", + "voltage": true, + "current": true, + "power": true, + "max_power": false, + "voltage_high_threshold": true, + "voltage_low_threshold": true, + "temperature": true, + "fans_target_speed": true, + "status_led": { + "controllable": false + }, + "fans": [ + { + "name": "PSU2_FAN1", + "speed": { + "controllable": false, + "minimum": 40, + "maximum": 100 + }, + "status_led": { + "available": false + } + } + ] + } + ], + "thermals": [ + { + "name": "CPU", + "controllable": false, + "low-crit-threshold": true, + "high-crit-threshold": true, + "low-threshold": true, + "high-threshold": true, + "minimum-recorded": false, + "maximum-recorded": false + }, + { + "name": "Inlet", + "controllable": false, + "low-crit-threshold": true, + "high-crit-threshold": true, + "low-threshold": true, + "high-threshold": true, + "minimum-recorded": false, + "maximum-recorded": false + }, + { + "name": "Outlet", + "controllable": false, + "low-crit-threshold": true, + "high-crit-threshold": true, + "low-threshold": true, + "high-threshold": true, + "minimum-recorded": false, + "maximum-recorded": false + }, + { + "name": "Board", + "controllable": false, + "low-crit-threshold": true, + "high-crit-threshold": true, + "low-threshold": true, + "high-threshold": true, + "minimum-recorded": false, + "maximum-recorded": false + }, + { + "name": "ASIC_TEMP", + "controllable": false, + "low-crit-threshold": true, + "high-crit-threshold": true, + "low-threshold": true, + "high-threshold": true, + "minimum-recorded": false, + "maximum-recorded": false + }, + { + "name": "PSU1_TEMP", + "controllable": false, + "low-crit-threshold": true, + "high-crit-threshold": true, + "low-threshold": true, + "high-threshold": true, + "minimum-recorded": false, + "maximum-recorded": false + }, + { + "name": "PSU2_TEMP", + "controllable": false, + "low-crit-threshold": true, + "high-crit-threshold": true, + "low-threshold": true, + "high-threshold": true, + "minimum-recorded": false, + "maximum-recorded": false + }, + { + "name": "OE_TEMP", + "controllable": false, + "low-crit-threshold": true, + "high-crit-threshold": true, + "low-threshold": true, + "high-threshold": true, + "minimum-recorded": false, + "maximum-recorded": false + }, + { + "name": "RLM_TEMP", + "controllable": false, + "low-crit-threshold": true, + "high-crit-threshold": true, + "low-threshold": true, + "high-threshold": true, + "minimum-recorded": false, + "maximum-recorded": false + }, + { + "name": "MOSFET_TEMP", + "controllable": false, + "low-crit-threshold": true, + "high-crit-threshold": true, + "low-threshold": true, + "high-threshold": true, + "minimum-recorded": false, + "maximum-recorded": false + } + ], + "modules": [], + "sfps": [ + { + "name": "Unused" + }, + { + "name": "Ethernet0" + }, + { + "name": "Ethernet8" + }, + { + "name": "Ethernet16" + }, + { + "name": "Ethernet24" + }, + { + "name": "Ethernet32" + }, + { + "name": "Ethernet40" + }, + { + "name": "Ethernet48" + }, + { + "name": "Ethernet56" + }, + { + "name": "Ethernet64" + }, + { + "name": "Ethernet72" + }, + { + "name": "Ethernet80" + }, + { + "name": "Ethernet88" + }, + { + "name": "Ethernet96" + }, + { + "name": "Ethernet104" + }, + { + "name": "Ethernet112" + }, + { + "name": "Ethernet120" + }, + { + "name": "Ethernet128" + }, + { + "name": "Ethernet136" + }, + { + "name": "Ethernet144" + }, + { + "name": "Ethernet152" + }, + { + "name": "Ethernet160" + }, + { + "name": "Ethernet168" + }, + { + "name": "Ethernet176" + }, + { + "name": "Ethernet184" + }, + { + "name": "Ethernet192" + }, + { + "name": "Ethernet200" + }, + { + "name": "Ethernet208" + }, + { + "name": "Ethernet216" + }, + { + "name": "Ethernet224" + }, + { + "name": "Ethernet232" + }, + { + "name": "Ethernet240" + }, + { + "name": "Ethernet248" + }, + { + "name": "Ethernet256" + }, + { + "name": "Ethernet264" + }, + { + "name": "Ethernet272" + }, + { + "name": "Ethernet280" + }, + { + "name": "Ethernet288" + }, + { + "name": "Ethernet296" + }, + { + "name": "Ethernet304" + }, + { + "name": "Ethernet312" + }, + { + "name": "Ethernet320" + }, + { + "name": "Ethernet328" + }, + { + "name": "Ethernet336" + }, + { + "name": "Ethernet344" + }, + { + "name": "Ethernet352" + }, + { + "name": "Ethernet360" + }, + { + "name": "Ethernet368" + }, + { + "name": "Ethernet376" + }, + { + "name": "Ethernet384" + }, + { + "name": "Ethernet392" + }, + { + "name": "Ethernet400" + }, + { + "name": "Ethernet408" + }, + { + "name": "Ethernet416" + }, + { + "name": "Ethernet424" + }, + { + "name": "Ethernet432" + }, + { + "name": "Ethernet440" + }, + { + "name": "Ethernet448" + }, + { + "name": "Ethernet456" + }, + { + "name": "Ethernet464" + }, + { + "name": "Ethernet472" + }, + { + "name": "Ethernet480" + }, + { + "name": "Ethernet488" + }, + { + "name": "Ethernet496" + }, + { + "name": "Ethernet504" + } + ] }, "interfaces": { "Ethernet0": { diff --git a/platform/broadcom/sonic-platform-modules-micas/common/sonic_platform/chassis.py b/platform/broadcom/sonic-platform-modules-micas/common/sonic_platform/chassis.py index 57a811fd68..a70788f279 100644 --- a/platform/broadcom/sonic-platform-modules-micas/common/sonic_platform/chassis.py +++ b/platform/broadcom/sonic-platform-modules-micas/common/sonic_platform/chassis.py @@ -26,7 +26,7 @@ # from sonic_platform.fan import Fan from sonic_platform.fan_drawer import FanDrawer from sonic_platform.thermal import Thermal - # from sonic_platform.watchdog import Watchdog + from sonic_platform.watchdog import Watchdog from sonic_platform.component import Component from sonic_platform.eeprom import Eeprom from sonic_platform.dcdc import Dcdc @@ -95,7 +95,7 @@ def __init__(self): print("EEPROM INIT ERROR %s" % str(err)) # Initialize watchdog - # self._watchdog = Watchdog() + self._watchdog = None fantray_num = self.int_case.get_fan_total_number() for index in range(fantray_num): fandrawer = FanDrawer(self.int_case, index + 1) @@ -566,3 +566,9 @@ def _init_port_mappings(self): else: # None cpo port self._sfp_list.append(Sfp(port_id)) + def get_watchdog(self): + if self._watchdog is None: + from sonic_platform.watchdog import Watchdog + self._watchdog = Watchdog() + + return self._watchdog diff --git a/platform/broadcom/sonic-platform-modules-micas/common/sonic_platform/component.py b/platform/broadcom/sonic-platform-modules-micas/common/sonic_platform/component.py index 6e775c3045..4f3a33f25d 100644 --- a/platform/broadcom/sonic-platform-modules-micas/common/sonic_platform/component.py +++ b/platform/broadcom/sonic-platform-modules-micas/common/sonic_platform/component.py @@ -60,6 +60,55 @@ def get_name(self): self.cpld_dict_update() return self.cpld_dict["Name"] + def get_model(self): + """ + Retrieves the part number of the component + Returns: + string: Part number of component + """ + return 'None' + + def get_serial(self): + """ + Retrieves the serial number of the component + Returns: + string: Serial number of component + """ + return 'None' + + def get_presence(self): + """ + Retrieves the presence of the component + Returns: + bool: True if present, False if not + """ + return True + + def get_status(self): + """ + Retrieves the operational status of the component + Returns: + bool: True if component is operating properly, False if not + """ + return True + + def get_position_in_parent(self): + """ + Retrieves 1-based relative physical position in parent device. + Returns: + integer: The 1-based relative physical position in parent + device or -1 if cannot determine the position + """ + return -1 + + def is_replaceable(self): + """ + Indicate whether component is replaceable. + Returns: + bool: True if it is replaceable. + """ + return False + def get_description(self): """ Retrieves the description of the component @@ -94,7 +143,7 @@ def get_available_firmware_version(self, image_path): Returns: A string containing the available firmware version of the component """ - raise NotImplementedError + return 'None' def get_firmware_update_notification(self, image_path): """ diff --git a/platform/broadcom/sonic-platform-modules-micas/common/sonic_platform/cpo.py b/platform/broadcom/sonic-platform-modules-micas/common/sonic_platform/cpo.py index 096902909d..815479c3c6 100644 --- a/platform/broadcom/sonic-platform-modules-micas/common/sonic_platform/cpo.py +++ b/platform/broadcom/sonic-platform-modules-micas/common/sonic_platform/cpo.py @@ -28,6 +28,8 @@ from sonic_platform_base.sonic_xcvr.mem_maps.broadcom.bailly import BaillyMemMap from sonic_platform_base.sonic_xcvr.codes.broadcom.bailly import BaillyCodes from sonic_platform_base.sonic_xcvr.xcvr_eeprom import XcvrEeprom + from sonic_py_common import device_info + from sonic_platform_base.sonic_sfp.sfputilhelper import SfpUtilHelper except ImportError as error: raise ImportError(str(error) + "- required module not found") from error @@ -250,3 +252,26 @@ def is_els_tx_on(self): pass def is_els_tx_enabled(self): pass + + def __get_path_to_port_config_file(self): + hwsku_path = device_info.get_path_to_platform_dir() + return "/".join([hwsku_path, "platform.json"]) + + def get_name(self): + """ + Retrieves the name of the device + Returns: + string: The name of the device + """ + sfputil_helper = SfpUtilHelper() + sfputil_helper.read_porttab_mappings(self.__get_path_to_port_config_file()) + logical_list = sfputil_helper.logical + idx = int(self._port_id) - 1 + name = logical_list[idx] if 0 <= idx < len(logical_list) else None + return name or "Unknown" + + def is_replaceable(self): + return False + + def get_reset_status(self): + return False \ No newline at end of file diff --git a/platform/broadcom/sonic-platform-modules-micas/common/sonic_platform/watchdog.py b/platform/broadcom/sonic-platform-modules-micas/common/sonic_platform/watchdog.py index 1326d1671e..ff6dd45d69 100644 --- a/platform/broadcom/sonic-platform-modules-micas/common/sonic_platform/watchdog.py +++ b/platform/broadcom/sonic-platform-modules-micas/common/sonic_platform/watchdog.py @@ -55,7 +55,7 @@ WDIOS_ENABLECARD = 0x0002 WDT_COMMON_ERROR = -1 -WDT_IDENTITY = "CPLD Watchdog" +WDT_IDENTITY = ["CPLD Watchdog", "iTCO_wdt"] WDT_SYSFS_PATH = "/sys/class/watchdog/" DEFAULT_TIMEOUT = 180 @@ -80,9 +80,8 @@ def _is_wd_main(self, dev): """ Checks watchdog identity """ - identity = self._read_file( - "{}/{}/identity".format(WDT_SYSFS_PATH, dev)) - return identity == WDT_IDENTITY + identity = self._read_file("{}/{}/identity".format(WDT_SYSFS_PATH, dev)) + return identity in WDT_IDENTITY def _get_wdt(self): """