[Mellanox] Change port index in port_config.ini to 1-based (#4781)
* Change port index in port_config.ini to 1-based * Add default port index to port_config.ini, change platform plugins to accept 1-based port index * fix port index in sfp_event.py
This commit is contained in:
parent
8339d5f4b1
commit
563a0fd21e
@ -1,23 +1,23 @@
|
|||||||
# name lanes index
|
# name lanes index
|
||||||
Ethernet0 0 0
|
Ethernet0 0 1
|
||||||
Ethernet4 4 1
|
Ethernet4 4 2
|
||||||
Ethernet8 8 2
|
Ethernet8 8 3
|
||||||
Ethernet12 12 3
|
Ethernet12 12 4
|
||||||
Ethernet16 16 4
|
Ethernet16 16 5
|
||||||
Ethernet20 20 5
|
Ethernet20 20 6
|
||||||
Ethernet24 24 6
|
Ethernet24 24 7
|
||||||
Ethernet28 28 7
|
Ethernet28 28 8
|
||||||
Ethernet32 32 8
|
Ethernet32 32 9
|
||||||
Ethernet36 36 9
|
Ethernet36 36 10
|
||||||
Ethernet40 40 10
|
Ethernet40 40 11
|
||||||
Ethernet44 44 11
|
Ethernet44 44 12
|
||||||
Ethernet48 48 12
|
Ethernet48 48 13
|
||||||
Ethernet52 52 13
|
Ethernet52 52 14
|
||||||
Ethernet56 56 14
|
Ethernet56 56 15
|
||||||
Ethernet60 60 15
|
Ethernet60 60 16
|
||||||
Ethernet64 64 16
|
Ethernet64 64 17
|
||||||
Ethernet68 68 17
|
Ethernet68 68 18
|
||||||
Ethernet72 72,73,74,75 18
|
Ethernet72 72,73,74,75 19
|
||||||
Ethernet76 76,77,78,79 19
|
Ethernet76 76,77,78,79 20
|
||||||
Ethernet80 80,81,82,83 20
|
Ethernet80 80,81,82,83 21
|
||||||
Ethernet84 84,85,86,87 21
|
Ethernet84 84,85,86,87 22
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
# name lanes
|
# name lanes index
|
||||||
Ethernet0 0,1,2,3
|
Ethernet0 0,1,2,3 1
|
||||||
Ethernet4 4,5,6,7
|
Ethernet4 4,5,6,7 2
|
||||||
Ethernet8 8,9,10,11
|
Ethernet8 8,9,10,11 3
|
||||||
Ethernet12 12,13,14,15
|
Ethernet12 12,13,14,15 4
|
||||||
Ethernet16 16,17,18,19
|
Ethernet16 16,17,18,19 5
|
||||||
Ethernet20 20,21,22,23
|
Ethernet20 20,21,22,23 6
|
||||||
Ethernet24 24,25,26,27
|
Ethernet24 24,25,26,27 7
|
||||||
Ethernet28 28,29,30,31
|
Ethernet28 28,29,30,31 8
|
||||||
Ethernet32 32,33,34,35
|
Ethernet32 32,33,34,35 9
|
||||||
Ethernet36 36,37,38,39
|
Ethernet36 36,37,38,39 10
|
||||||
Ethernet40 40,41,42,43
|
Ethernet40 40,41,42,43 11
|
||||||
Ethernet44 44,45,46,47
|
Ethernet44 44,45,46,47 12
|
||||||
Ethernet48 48,49,50,51
|
Ethernet48 48,49,50,51 13
|
||||||
Ethernet52 52,53,54,55
|
Ethernet52 52,53,54,55 14
|
||||||
Ethernet56 56,57,58,59
|
Ethernet56 56,57,58,59 15
|
||||||
Ethernet60 60,61,62,63
|
Ethernet60 60,61,62,63 16
|
||||||
|
@ -1,57 +1,57 @@
|
|||||||
# name lanes
|
# name lanes index
|
||||||
Ethernet0 0
|
Ethernet0 0 1
|
||||||
Ethernet4 4
|
Ethernet4 4 2
|
||||||
Ethernet8 8
|
Ethernet8 8 3
|
||||||
Ethernet12 12
|
Ethernet12 12 4
|
||||||
Ethernet16 16
|
Ethernet16 16 5
|
||||||
Ethernet20 20
|
Ethernet20 20 6
|
||||||
Ethernet24 24
|
Ethernet24 24 7
|
||||||
Ethernet28 28
|
Ethernet28 28 8
|
||||||
Ethernet32 32
|
Ethernet32 32 9
|
||||||
Ethernet36 36
|
Ethernet36 36 10
|
||||||
Ethernet40 40
|
Ethernet40 40 11
|
||||||
Ethernet44 44
|
Ethernet44 44 12
|
||||||
Ethernet48 48
|
Ethernet48 48 13
|
||||||
Ethernet52 52
|
Ethernet52 52 14
|
||||||
Ethernet56 56
|
Ethernet56 56 15
|
||||||
Ethernet60 60
|
Ethernet60 60 16
|
||||||
Ethernet64 64
|
Ethernet64 64 17
|
||||||
Ethernet68 68
|
Ethernet68 68 18
|
||||||
Ethernet72 72
|
Ethernet72 72 19
|
||||||
Ethernet76 76
|
Ethernet76 76 20
|
||||||
Ethernet80 80
|
Ethernet80 80 21
|
||||||
Ethernet84 84
|
Ethernet84 84 22
|
||||||
Ethernet88 88
|
Ethernet88 88 23
|
||||||
Ethernet92 92
|
Ethernet92 92 24
|
||||||
Ethernet96 96
|
Ethernet96 96 25
|
||||||
Ethernet100 100
|
Ethernet100 100 26
|
||||||
Ethernet104 104
|
Ethernet104 104 27
|
||||||
Ethernet108 108
|
Ethernet108 108 28
|
||||||
Ethernet112 112
|
Ethernet112 112 29
|
||||||
Ethernet116 116
|
Ethernet116 116 30
|
||||||
Ethernet120 120
|
Ethernet120 120 31
|
||||||
Ethernet124 124
|
Ethernet124 124 32
|
||||||
Ethernet128 128
|
Ethernet128 128 33
|
||||||
Ethernet132 132
|
Ethernet132 132 34
|
||||||
Ethernet136 136
|
Ethernet136 136 35
|
||||||
Ethernet140 140
|
Ethernet140 140 36
|
||||||
Ethernet144 144
|
Ethernet144 144 37
|
||||||
Ethernet148 148
|
Ethernet148 148 38
|
||||||
Ethernet152 152
|
Ethernet152 152 39
|
||||||
Ethernet156 156
|
Ethernet156 156 40
|
||||||
Ethernet160 160
|
Ethernet160 160 41
|
||||||
Ethernet164 164
|
Ethernet164 164 42
|
||||||
Ethernet168 168
|
Ethernet168 168 43
|
||||||
Ethernet172 172
|
Ethernet172 172 44
|
||||||
Ethernet176 176
|
Ethernet176 176 45
|
||||||
Ethernet180 180
|
Ethernet180 180 46
|
||||||
Ethernet184 184
|
Ethernet184 184 47
|
||||||
Ethernet188 188
|
Ethernet188 188 48
|
||||||
Ethernet192 192,193,194,195
|
Ethernet192 192,193,194,195 49
|
||||||
Ethernet196 196,197,198,199
|
Ethernet196 196,197,198,199 50
|
||||||
Ethernet200 200,201,202,203
|
Ethernet200 200,201,202,203 51
|
||||||
Ethernet204 204,205,206,207
|
Ethernet204 204,205,206,207 52
|
||||||
Ethernet208 208,209,210,211
|
Ethernet208 208,209,210,211 53
|
||||||
Ethernet212 212,213,214,215
|
Ethernet212 212,213,214,215 54
|
||||||
Ethernet216 216,217,218,219
|
Ethernet216 216,217,218,219 55
|
||||||
Ethernet220 220,221,222,223
|
Ethernet220 220,221,222,223 56
|
||||||
|
@ -1,33 +1,33 @@
|
|||||||
# name lanes alias
|
# name lanes alias index
|
||||||
Ethernet0 0,1,2,3 etp1
|
Ethernet0 0,1,2,3 etp1 1
|
||||||
Ethernet4 4,5,6,7 etp2
|
Ethernet4 4,5,6,7 etp2 2
|
||||||
Ethernet8 8,9,10,11 etp3
|
Ethernet8 8,9,10,11 etp3 3
|
||||||
Ethernet12 12,13,14,15 etp4
|
Ethernet12 12,13,14,15 etp4 4
|
||||||
Ethernet16 16,17,18,19 etp5
|
Ethernet16 16,17,18,19 etp5 5
|
||||||
Ethernet20 20,21,22,23 etp6
|
Ethernet20 20,21,22,23 etp6 6
|
||||||
Ethernet24 24,25,26,27 etp7
|
Ethernet24 24,25,26,27 etp7 7
|
||||||
Ethernet28 28,29,30,31 etp8
|
Ethernet28 28,29,30,31 etp8 8
|
||||||
Ethernet32 32,33,34,35 etp9
|
Ethernet32 32,33,34,35 etp9 9
|
||||||
Ethernet36 36,37,38,39 etp10
|
Ethernet36 36,37,38,39 etp10 10
|
||||||
Ethernet40 40,41,42,43 etp11
|
Ethernet40 40,41,42,43 etp11 11
|
||||||
Ethernet44 44,45,46,47 etp12
|
Ethernet44 44,45,46,47 etp12 12
|
||||||
Ethernet48 48,49,50,51 etp13
|
Ethernet48 48,49,50,51 etp13 13
|
||||||
Ethernet52 52,53,54,55 etp14
|
Ethernet52 52,53,54,55 etp14 14
|
||||||
Ethernet56 56,57,58,59 etp15
|
Ethernet56 56,57,58,59 etp15 15
|
||||||
Ethernet60 60,61,62,63 etp16
|
Ethernet60 60,61,62,63 etp16 16
|
||||||
Ethernet64 64,65,66,67 etp17
|
Ethernet64 64,65,66,67 etp17 17
|
||||||
Ethernet68 68,69,70,71 etp18
|
Ethernet68 68,69,70,71 etp18 18
|
||||||
Ethernet72 72,73,74,75 etp19
|
Ethernet72 72,73,74,75 etp19 19
|
||||||
Ethernet76 76,77,78,79 etp20
|
Ethernet76 76,77,78,79 etp20 20
|
||||||
Ethernet80 80,81,82,83 etp21
|
Ethernet80 80,81,82,83 etp21 21
|
||||||
Ethernet84 84,85,86,87 etp22
|
Ethernet84 84,85,86,87 etp22 22
|
||||||
Ethernet88 88,89,90,91 etp23
|
Ethernet88 88,89,90,91 etp23 23
|
||||||
Ethernet92 92,93,94,95 etp24
|
Ethernet92 92,93,94,95 etp24 24
|
||||||
Ethernet96 96,97,98,99 etp25
|
Ethernet96 96,97,98,99 etp25 25
|
||||||
Ethernet100 100,101,102,103 etp26
|
Ethernet100 100,101,102,103 etp26 26
|
||||||
Ethernet104 104,105,106,107 etp27
|
Ethernet104 104,105,106,107 etp27 27
|
||||||
Ethernet108 108,109,110,111 etp28
|
Ethernet108 108,109,110,111 etp28 28
|
||||||
Ethernet112 112,113,114,115 etp29
|
Ethernet112 112,113,114,115 etp29 29
|
||||||
Ethernet116 116,117,118,119 etp30
|
Ethernet116 116,117,118,119 etp30 30
|
||||||
Ethernet120 120,121,122,123 etp31
|
Ethernet120 120,121,122,123 etp31 31
|
||||||
Ethernet124 124,125,126,127 etp32
|
Ethernet124 124,125,126,127 etp32 32
|
||||||
|
@ -1,37 +1,37 @@
|
|||||||
# name lanes alias index speed
|
# name lanes alias index speed
|
||||||
Ethernet0 0,1,2,3 etp1 0 100000
|
Ethernet0 0,1,2,3 etp1 1 100000
|
||||||
Ethernet4 4,5,6,7 etp2 1 100000
|
Ethernet4 4,5,6,7 etp2 2 100000
|
||||||
Ethernet8 8,9,10,11 etp3 2 100000
|
Ethernet8 8,9,10,11 etp3 3 100000
|
||||||
Ethernet12 12,13,14,15 etp4 3 100000
|
Ethernet12 12,13,14,15 etp4 4 100000
|
||||||
Ethernet16 16,17,18,19 etp5 4 100000
|
Ethernet16 16,17,18,19 etp5 5 100000
|
||||||
Ethernet20 20,21,22,23 etp6 5 100000
|
Ethernet20 20,21,22,23 etp6 6 100000
|
||||||
Ethernet24 24,25,26,27 etp7 6 100000
|
Ethernet24 24,25,26,27 etp7 7 100000
|
||||||
Ethernet28 28,29,30,31 etp8 7 100000
|
Ethernet28 28,29,30,31 etp8 8 100000
|
||||||
Ethernet32 32,33,34,35 etp9 8 100000
|
Ethernet32 32,33,34,35 etp9 9 100000
|
||||||
Ethernet36 36,37,38,39 etp10 9 100000
|
Ethernet36 36,37,38,39 etp10 10 100000
|
||||||
Ethernet40 40,41,42,43 etp11 10 100000
|
Ethernet40 40,41,42,43 etp11 11 100000
|
||||||
Ethernet44 44,45,46,47 etp12 11 100000
|
Ethernet44 44,45,46,47 etp12 12 100000
|
||||||
Ethernet48 48,49,50,51 etp13 12 100000
|
Ethernet48 48,49,50,51 etp13 13 100000
|
||||||
Ethernet52 52,53,54,55 etp14 13 100000
|
Ethernet52 52,53,54,55 etp14 14 100000
|
||||||
Ethernet56 56,57,58,59 etp15 14 100000
|
Ethernet56 56,57,58,59 etp15 15 100000
|
||||||
Ethernet60 60,61,62,63 etp16 15 100000
|
Ethernet60 60,61,62,63 etp16 16 100000
|
||||||
Ethernet64 64,65,66,67 etp17 16 100000
|
Ethernet64 64,65,66,67 etp17 17 100000
|
||||||
Ethernet68 68,69,70,71 etp18 17 100000
|
Ethernet68 68,69,70,71 etp18 18 100000
|
||||||
Ethernet72 72,73,74,75 etp19 18 100000
|
Ethernet72 72,73,74,75 etp19 19 100000
|
||||||
Ethernet76 76,77,78,79 etp20 19 100000
|
Ethernet76 76,77,78,79 etp20 20 100000
|
||||||
Ethernet80 80,81,82,83 etp21 20 100000
|
Ethernet80 80,81,82,83 etp21 21 100000
|
||||||
Ethernet84 84,85,86,87 etp22 21 100000
|
Ethernet84 84,85,86,87 etp22 22 100000
|
||||||
Ethernet88 88,89,90,91 etp23 22 100000
|
Ethernet88 88,89,90,91 etp23 23 100000
|
||||||
Ethernet92 92,93,94,95 etp24 23 100000
|
Ethernet92 92,93,94,95 etp24 24 100000
|
||||||
Ethernet96 96,97,98,99 etp25 24 100000
|
Ethernet96 96,97,98,99 etp25 25 100000
|
||||||
Ethernet100 100,101,102,103 etp26 25 100000
|
Ethernet100 100,101,102,103 etp26 26 100000
|
||||||
Ethernet104 104,105,106,107 etp27 26 100000
|
Ethernet104 104,105,106,107 etp27 27 100000
|
||||||
Ethernet108 108,109,110,111 etp28 27 100000
|
Ethernet108 108,109,110,111 etp28 28 100000
|
||||||
Ethernet112 112,113 etp29a 28 50000
|
Ethernet112 112,113 etp29a 29 50000
|
||||||
Ethernet114 114,115 etp29b 28 50000
|
Ethernet114 114,115 etp29b 29 50000
|
||||||
Ethernet116 116,117 etp30a 29 50000
|
Ethernet116 116,117 etp30a 30 50000
|
||||||
Ethernet118 118,119 etp30b 29 50000
|
Ethernet118 118,119 etp30b 30 50000
|
||||||
Ethernet120 120,121 etp31a 30 50000
|
Ethernet120 120,121 etp31a 31 50000
|
||||||
Ethernet122 122,123 etp31b 30 50000
|
Ethernet122 122,123 etp31b 31 50000
|
||||||
Ethernet124 124,125 etp32a 31 50000
|
Ethernet124 124,125 etp32a 32 50000
|
||||||
Ethernet126 126,127 etp32b 31 50000
|
Ethernet126 126,127 etp32b 32 50000
|
||||||
|
@ -1,57 +1,57 @@
|
|||||||
# name lanes alias index speed
|
# name lanes alias index speed
|
||||||
Ethernet0 0,1 etp1a 0 50000
|
Ethernet0 0,1 etp1a 1 50000
|
||||||
Ethernet2 2,3 etp1b 0 50000
|
Ethernet2 2,3 etp1b 1 50000
|
||||||
Ethernet4 4,5 etp2a 1 50000
|
Ethernet4 4,5 etp2a 2 50000
|
||||||
Ethernet6 6,7 etp2b 1 50000
|
Ethernet6 6,7 etp2b 2 50000
|
||||||
Ethernet8 8,9 etp3a 2 50000
|
Ethernet8 8,9 etp3a 3 50000
|
||||||
Ethernet10 10,11 etp3b 2 50000
|
Ethernet10 10,11 etp3b 3 50000
|
||||||
Ethernet12 12,13 etp4a 3 50000
|
Ethernet12 12,13 etp4a 4 50000
|
||||||
Ethernet14 14,15 etp4b 3 50000
|
Ethernet14 14,15 etp4b 4 50000
|
||||||
Ethernet16 16,17 etp5a 4 50000
|
Ethernet16 16,17 etp5a 5 50000
|
||||||
Ethernet18 18,19 etp5b 4 50000
|
Ethernet18 18,19 etp5b 5 50000
|
||||||
Ethernet20 20,21 etp6a 5 50000
|
Ethernet20 20,21 etp6a 6 50000
|
||||||
Ethernet22 22,23 etp6b 5 50000
|
Ethernet22 22,23 etp6b 6 50000
|
||||||
Ethernet24 24,25,26,27 etp7 6 100000
|
Ethernet24 24,25,26,27 etp7 7 100000
|
||||||
Ethernet28 28,29,30,31 etp8 7 100000
|
Ethernet28 28,29,30,31 etp8 8 100000
|
||||||
Ethernet32 32,33,34,35 etp9 8 100000
|
Ethernet32 32,33,34,35 etp9 9 100000
|
||||||
Ethernet36 36,37,38,39 etp10 9 100000
|
Ethernet36 36,37,38,39 etp10 10 100000
|
||||||
Ethernet40 40,41 etp11a 10 50000
|
Ethernet40 40,41 etp11a 11 50000
|
||||||
Ethernet42 42,43 etp11b 10 50000
|
Ethernet42 42,43 etp11b 11 50000
|
||||||
Ethernet44 44,45 etp12a 11 50000
|
Ethernet44 44,45 etp12a 12 50000
|
||||||
Ethernet46 46,47 etp12b 11 50000
|
Ethernet46 46,47 etp12b 12 50000
|
||||||
Ethernet48 48,49 etp13a 12 50000
|
Ethernet48 48,49 etp13a 13 50000
|
||||||
Ethernet50 50,51 etp13b 12 50000
|
Ethernet50 50,51 etp13b 13 50000
|
||||||
Ethernet52 52,53 etp14a 13 50000
|
Ethernet52 52,53 etp14a 14 50000
|
||||||
Ethernet54 54,55 etp14b 13 50000
|
Ethernet54 54,55 etp14b 14 50000
|
||||||
Ethernet56 56,57 etp15a 14 50000
|
Ethernet56 56,57 etp15a 15 50000
|
||||||
Ethernet58 58,59 etp15b 14 50000
|
Ethernet58 58,59 etp15b 15 50000
|
||||||
Ethernet60 60,61 etp16a 15 50000
|
Ethernet60 60,61 etp16a 16 50000
|
||||||
Ethernet62 62,63 etp16b 15 50000
|
Ethernet62 62,63 etp16b 16 50000
|
||||||
Ethernet64 64,65 etp17a 16 50000
|
Ethernet64 64,65 etp17a 17 50000
|
||||||
Ethernet66 66,67 etp17b 16 50000
|
Ethernet66 66,67 etp17b 17 50000
|
||||||
Ethernet68 68,69 etp18a 17 50000
|
Ethernet68 68,69 etp18a 18 50000
|
||||||
Ethernet70 70,71 etp18b 17 50000
|
Ethernet70 70,71 etp18b 18 50000
|
||||||
Ethernet72 72,73 etp19a 18 50000
|
Ethernet72 72,73 etp19a 19 50000
|
||||||
Ethernet74 74,75 etp19b 18 50000
|
Ethernet74 74,75 etp19b 19 50000
|
||||||
Ethernet76 76,77 etp20a 19 50000
|
Ethernet76 76,77 etp20a 20 50000
|
||||||
Ethernet78 78,79 etp20b 19 50000
|
Ethernet78 78,79 etp20b 20 50000
|
||||||
Ethernet80 80,81 etp21a 20 50000
|
Ethernet80 80,81 etp21a 21 50000
|
||||||
Ethernet82 82,83 etp21b 20 50000
|
Ethernet82 82,83 etp21b 21 50000
|
||||||
Ethernet84 84,85 etp22a 21 50000
|
Ethernet84 84,85 etp22a 22 50000
|
||||||
Ethernet86 86,87 etp22b 21 50000
|
Ethernet86 86,87 etp22b 22 50000
|
||||||
Ethernet88 88,89,90,91 etp23 22 100000
|
Ethernet88 88,89,90,91 etp23 23 100000
|
||||||
Ethernet92 92,93,94,95 etp24 23 100000
|
Ethernet92 92,93,94,95 etp24 24 100000
|
||||||
Ethernet96 96,97,98,99 etp25 24 100000
|
Ethernet96 96,97,98,99 etp25 25 100000
|
||||||
Ethernet100 100,101,102,103 etp26 25 100000
|
Ethernet100 100,101,102,103 etp26 26 100000
|
||||||
Ethernet104 104,105 etp27a 26 50000
|
Ethernet104 104,105 etp27a 27 50000
|
||||||
Ethernet106 106,107 etp27b 26 50000
|
Ethernet106 106,107 etp27b 27 50000
|
||||||
Ethernet108 108,109 etp28a 27 50000
|
Ethernet108 108,109 etp28a 28 50000
|
||||||
Ethernet110 110,111 etp28b 27 50000
|
Ethernet110 110,111 etp28b 28 50000
|
||||||
Ethernet112 112,113 etp29a 28 50000
|
Ethernet112 112,113 etp29a 29 50000
|
||||||
Ethernet114 114,115 etp29b 28 50000
|
Ethernet114 114,115 etp29b 29 50000
|
||||||
Ethernet116 116,117 etp30a 29 50000
|
Ethernet116 116,117 etp30a 30 50000
|
||||||
Ethernet118 118,119 etp30b 29 50000
|
Ethernet118 118,119 etp30b 30 50000
|
||||||
Ethernet120 120,121 etp31a 30 50000
|
Ethernet120 120,121 etp31a 31 50000
|
||||||
Ethernet122 122,123 etp31b 30 50000
|
Ethernet122 122,123 etp31b 31 50000
|
||||||
Ethernet124 124,125 etp32a 31 50000
|
Ethernet124 124,125 etp32a 32 50000
|
||||||
Ethernet126 126,127 etp32b 31 50000
|
Ethernet126 126,127 etp32b 32 50000
|
||||||
|
@ -24,7 +24,7 @@ if (rc != 0):
|
|||||||
sys.exit(errno.EACCES)
|
sys.exit(errno.EACCES)
|
||||||
|
|
||||||
# Get SFP module number
|
# Get SFP module number
|
||||||
sfp_module = int(sys.argv[1])
|
sfp_module = int(sys.argv[1]) - 1
|
||||||
|
|
||||||
# Get MCION
|
# Get MCION
|
||||||
mcion = ku_mcion_reg()
|
mcion = ku_mcion_reg()
|
||||||
|
@ -146,7 +146,7 @@ if (rc != SXD_STATUS_SUCCESS):
|
|||||||
sys.exit(errno.EACCES);
|
sys.exit(errno.EACCES);
|
||||||
|
|
||||||
# Get SFP module
|
# Get SFP module
|
||||||
sfp_module = int(sys.argv[1])
|
sfp_module = int(sys.argv[1]) - 1
|
||||||
|
|
||||||
# Get all ports at admin up status that related to the SFP module
|
# Get all ports at admin up status that related to the SFP module
|
||||||
log_port_list = get_log_ports(handle, sfp_module)
|
log_port_list = get_log_ports(handle, sfp_module)
|
||||||
|
@ -24,7 +24,7 @@ if (rc != 0):
|
|||||||
sys.exit(errno.EACCES)
|
sys.exit(errno.EACCES)
|
||||||
|
|
||||||
# Get SFP module number
|
# Get SFP module number
|
||||||
sfp_module = int(sys.argv[1])
|
sfp_module = int(sys.argv[1]) - 1
|
||||||
|
|
||||||
# Get PMAOS
|
# Get PMAOS
|
||||||
pmaos = ku_pmaos_reg()
|
pmaos = ku_pmaos_reg()
|
||||||
|
@ -36,7 +36,7 @@ SYSTEM_FAIL = 'system_fail'
|
|||||||
GET_PLATFORM_CMD = "sonic-cfggen -d -v DEVICE_METADATA.localhost.platform"
|
GET_PLATFORM_CMD = "sonic-cfggen -d -v DEVICE_METADATA.localhost.platform"
|
||||||
|
|
||||||
# Ethernet<n> <=> sfp<n+SFP_PORT_NAME_OFFSET>
|
# Ethernet<n> <=> sfp<n+SFP_PORT_NAME_OFFSET>
|
||||||
SFP_PORT_NAME_OFFSET = 1
|
SFP_PORT_NAME_OFFSET = 0
|
||||||
SFP_PORT_NAME_CONVENTION = "sfp{}"
|
SFP_PORT_NAME_CONVENTION = "sfp{}"
|
||||||
|
|
||||||
# magic code defnition for port number, qsfp port position of each platform
|
# magic code defnition for port number, qsfp port position of each platform
|
||||||
@ -94,9 +94,9 @@ class SfpUtil(SfpUtilBase):
|
|||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
port_position_tuple = self.get_port_position_tuple_by_platform_name()
|
port_position_tuple = self.get_port_position_tuple_by_platform_name()
|
||||||
self.PORT_START = port_position_tuple[0]
|
self.PORT_START = port_position_tuple[0] + 1
|
||||||
self.QSFP_PORT_START = port_position_tuple[1]
|
self.QSFP_PORT_START = port_position_tuple[1] + 1
|
||||||
self.PORT_END = port_position_tuple[2]
|
self.PORT_END = port_position_tuple[2] + 1
|
||||||
self.PORTS_IN_BLOCK = port_position_tuple[3]
|
self.PORTS_IN_BLOCK = port_position_tuple[3]
|
||||||
self.EEPROM_OFFSET = port_position_tuple[4]
|
self.EEPROM_OFFSET = port_position_tuple[4]
|
||||||
self.mlnx_sfpd_started = False
|
self.mlnx_sfpd_started = False
|
||||||
|
@ -1,33 +1,33 @@
|
|||||||
# name lanes
|
# name lanes index
|
||||||
Ethernet0 0,1,2,3
|
Ethernet0 0,1,2,3 1
|
||||||
Ethernet4 4,5,6,7
|
Ethernet4 4,5,6,7 2
|
||||||
Ethernet8 8,9,10,11
|
Ethernet8 8,9,10,11 3
|
||||||
Ethernet12 12,13,14,15
|
Ethernet12 12,13,14,15 4
|
||||||
Ethernet16 16,17,18,19
|
Ethernet16 16,17,18,19 5
|
||||||
Ethernet20 20,21,22,23
|
Ethernet20 20,21,22,23 6
|
||||||
Ethernet24 24,25,26,27
|
Ethernet24 24,25,26,27 7
|
||||||
Ethernet28 28,29,30,31
|
Ethernet28 28,29,30,31 8
|
||||||
Ethernet32 32,33,34,35
|
Ethernet32 32,33,34,35 9
|
||||||
Ethernet36 36,37,38,39
|
Ethernet36 36,37,38,39 10
|
||||||
Ethernet40 40,41,42,43
|
Ethernet40 40,41,42,43 11
|
||||||
Ethernet44 44,45,46,47
|
Ethernet44 44,45,46,47 12
|
||||||
Ethernet48 48,49,50,51
|
Ethernet48 48,49,50,51 13
|
||||||
Ethernet52 52,53,54,55
|
Ethernet52 52,53,54,55 14
|
||||||
Ethernet56 56,57,58,59
|
Ethernet56 56,57,58,59 15
|
||||||
Ethernet60 60,61,62,63
|
Ethernet60 60,61,62,63 16
|
||||||
Ethernet64 64,65,66,67
|
Ethernet64 64,65,66,67 17
|
||||||
Ethernet68 68,69,70,71
|
Ethernet68 68,69,70,71 18
|
||||||
Ethernet72 72,73,74,75
|
Ethernet72 72,73,74,75 19
|
||||||
Ethernet76 76,77,78,79
|
Ethernet76 76,77,78,79 20
|
||||||
Ethernet80 80,81,82,83
|
Ethernet80 80,81,82,83 21
|
||||||
Ethernet84 84,85,86,87
|
Ethernet84 84,85,86,87 22
|
||||||
Ethernet88 88,89,90,91
|
Ethernet88 88,89,90,91 23
|
||||||
Ethernet92 92,93,94,95
|
Ethernet92 92,93,94,95 24
|
||||||
Ethernet96 96,97,98,99
|
Ethernet96 96,97,98,99 25
|
||||||
Ethernet100 100,101,102,103
|
Ethernet100 100,101,102,103 26
|
||||||
Ethernet104 104,105,106,107
|
Ethernet104 104,105,106,107 27
|
||||||
Ethernet108 108,109,110,111
|
Ethernet108 108,109,110,111 28
|
||||||
Ethernet112 112,113,114,115
|
Ethernet112 112,113,114,115 29
|
||||||
Ethernet116 116,117,118,119
|
Ethernet116 116,117,118,119 30
|
||||||
Ethernet120 120,121,122,123
|
Ethernet120 120,121,122,123 31
|
||||||
Ethernet124 124,125,126,127
|
Ethernet124 124,125,126,127 32
|
||||||
|
@ -1,61 +1,61 @@
|
|||||||
# name lanes alias index
|
# name lanes alias index
|
||||||
Ethernet0 0 etp1 0
|
Ethernet0 0 etp1 1
|
||||||
Ethernet4 4 etp2 1
|
Ethernet4 4 etp2 2
|
||||||
Ethernet8 8 etp3 2
|
Ethernet8 8 etp3 3
|
||||||
Ethernet12 12 etp4 3
|
Ethernet12 12 etp4 4
|
||||||
Ethernet16 16 etp5 4
|
Ethernet16 16 etp5 5
|
||||||
Ethernet20 20 etp6 5
|
Ethernet20 20 etp6 6
|
||||||
Ethernet24 24 etp7 6
|
Ethernet24 24 etp7 7
|
||||||
Ethernet28 28 etp8 7
|
Ethernet28 28 etp8 8
|
||||||
Ethernet32 32 etp9 8
|
Ethernet32 32 etp9 9
|
||||||
Ethernet36 36 etp10 9
|
Ethernet36 36 etp10 10
|
||||||
Ethernet40 40 etp11 10
|
Ethernet40 40 etp11 11
|
||||||
Ethernet44 44 etp12 11
|
Ethernet44 44 etp12 12
|
||||||
Ethernet48 48 etp13 12
|
Ethernet48 48 etp13 13
|
||||||
Ethernet52 52 etp14 13
|
Ethernet52 52 etp14 14
|
||||||
Ethernet56 56 etp15 14
|
Ethernet56 56 etp15 15
|
||||||
Ethernet60 60 etp16 15
|
Ethernet60 60 etp16 16
|
||||||
Ethernet64 64 etp17 16
|
Ethernet64 64 etp17 17
|
||||||
Ethernet68 68 etp18 17
|
Ethernet68 68 etp18 18
|
||||||
Ethernet72 72 etp19 18
|
Ethernet72 72 etp19 19
|
||||||
Ethernet76 76 etp20 19
|
Ethernet76 76 etp20 20
|
||||||
Ethernet80 80 etp21 20
|
Ethernet80 80 etp21 21
|
||||||
Ethernet84 84 etp22 21
|
Ethernet84 84 etp22 22
|
||||||
Ethernet88 88 etp23 22
|
Ethernet88 88 etp23 23
|
||||||
Ethernet92 92 etp24 23
|
Ethernet92 92 etp24 24
|
||||||
Ethernet96 96 etp25 24
|
Ethernet96 96 etp25 25
|
||||||
Ethernet100 100 etp26 25
|
Ethernet100 100 etp26 26
|
||||||
Ethernet104 104 etp27 26
|
Ethernet104 104 etp27 27
|
||||||
Ethernet108 108 etp28 27
|
Ethernet108 108 etp28 28
|
||||||
Ethernet112 112 etp29 28
|
Ethernet112 112 etp29 29
|
||||||
Ethernet116 116 etp30 29
|
Ethernet116 116 etp30 30
|
||||||
Ethernet120 120 etp31 30
|
Ethernet120 120 etp31 31
|
||||||
Ethernet124 124 etp32 31
|
Ethernet124 124 etp32 32
|
||||||
Ethernet128 128 etp33 32
|
Ethernet128 128 etp33 33
|
||||||
Ethernet132 132 etp34 33
|
Ethernet132 132 etp34 34
|
||||||
Ethernet136 136 etp35 34
|
Ethernet136 136 etp35 35
|
||||||
Ethernet140 140 etp36 35
|
Ethernet140 140 etp36 36
|
||||||
Ethernet144 144 etp37 36
|
Ethernet144 144 etp37 37
|
||||||
Ethernet148 148 etp38 37
|
Ethernet148 148 etp38 38
|
||||||
Ethernet152 152 etp39 38
|
Ethernet152 152 etp39 39
|
||||||
Ethernet156 156 etp40 39
|
Ethernet156 156 etp40 40
|
||||||
Ethernet160 160 etp41 40
|
Ethernet160 160 etp41 41
|
||||||
Ethernet164 164 etp42 41
|
Ethernet164 164 etp42 42
|
||||||
Ethernet168 168 etp43 42
|
Ethernet168 168 etp43 43
|
||||||
Ethernet172 172 etp44 43
|
Ethernet172 172 etp44 44
|
||||||
Ethernet176 176 etp45 44
|
Ethernet176 176 etp45 45
|
||||||
Ethernet180 180 etp46 45
|
Ethernet180 180 etp46 46
|
||||||
Ethernet184 184 etp47 46
|
Ethernet184 184 etp47 47
|
||||||
Ethernet188 188 etp48 47
|
Ethernet188 188 etp48 48
|
||||||
Ethernet192 192,193,194,195 etp49 48
|
Ethernet192 192,193,194,195 etp49 49
|
||||||
Ethernet196 196,197,198,199 etp50 49
|
Ethernet196 196,197,198,199 etp50 50
|
||||||
Ethernet200 200,201,202,203 etp51 50
|
Ethernet200 200,201,202,203 etp51 51
|
||||||
Ethernet204 204,205,206,207 etp52 51
|
Ethernet204 204,205,206,207 etp52 52
|
||||||
Ethernet208 208,209,210,211 etp53 52
|
Ethernet208 208,209,210,211 etp53 53
|
||||||
Ethernet212 212,213,214,215 etp54 53
|
Ethernet212 212,213,214,215 etp54 54
|
||||||
Ethernet216 216,217,218,219 etp55 54
|
Ethernet216 216,217,218,219 etp55 55
|
||||||
Ethernet220 220,221,222,223 etp56 55
|
Ethernet220 220,221,222,223 etp56 56
|
||||||
Ethernet224 224,225,226,227 etp57 56
|
Ethernet224 224,225,226,227 etp57 57
|
||||||
Ethernet228 228,229,230,231 etp58 57
|
Ethernet228 228,229,230,231 etp58 58
|
||||||
Ethernet232 232,233,234,235 etp59 58
|
Ethernet232 232,233,234,235 etp59 59
|
||||||
Ethernet236 236,237,238,239 etp60 59
|
Ethernet236 236,237,238,239 etp60 60
|
||||||
|
@ -1,65 +1,65 @@
|
|||||||
# name lanes alias
|
# name lanes alias index
|
||||||
Ethernet0 0,1,2,3 etp1
|
Ethernet0 0,1,2,3 etp1 1
|
||||||
Ethernet4 4,5,6,7 etp2
|
Ethernet4 4,5,6,7 etp2 2
|
||||||
Ethernet8 8,9,10,11 etp3
|
Ethernet8 8,9,10,11 etp3 3
|
||||||
Ethernet12 12,13,14,15 etp4
|
Ethernet12 12,13,14,15 etp4 4
|
||||||
Ethernet16 16,17,18,19 etp5
|
Ethernet16 16,17,18,19 etp5 5
|
||||||
Ethernet20 20,21,22,23 etp6
|
Ethernet20 20,21,22,23 etp6 6
|
||||||
Ethernet24 24,25,26,27 etp7
|
Ethernet24 24,25,26,27 etp7 7
|
||||||
Ethernet28 28,29,30,31 etp8
|
Ethernet28 28,29,30,31 etp8 8
|
||||||
Ethernet32 32,33,34,35 etp9
|
Ethernet32 32,33,34,35 etp9 9
|
||||||
Ethernet36 36,37,38,39 etp10
|
Ethernet36 36,37,38,39 etp10 10
|
||||||
Ethernet40 40,41,42,43 etp11
|
Ethernet40 40,41,42,43 etp11 11
|
||||||
Ethernet44 44,45,46,47 etp12
|
Ethernet44 44,45,46,47 etp12 12
|
||||||
Ethernet48 48,49,50,51 etp13
|
Ethernet48 48,49,50,51 etp13 13
|
||||||
Ethernet52 52,53,54,55 etp14
|
Ethernet52 52,53,54,55 etp14 14
|
||||||
Ethernet56 56,57,58,59 etp15
|
Ethernet56 56,57,58,59 etp15 15
|
||||||
Ethernet60 60,61,62,63 etp16
|
Ethernet60 60,61,62,63 etp16 16
|
||||||
Ethernet64 64,65,66,67 etp17
|
Ethernet64 64,65,66,67 etp17 17
|
||||||
Ethernet68 68,69,70,71 etp18
|
Ethernet68 68,69,70,71 etp18 18
|
||||||
Ethernet72 72,73,74,75 etp19
|
Ethernet72 72,73,74,75 etp19 19
|
||||||
Ethernet76 76,77,78,79 etp20
|
Ethernet76 76,77,78,79 etp20 20
|
||||||
Ethernet80 80,81,82,83 etp21
|
Ethernet80 80,81,82,83 etp21 21
|
||||||
Ethernet84 84,85,86,87 etp22
|
Ethernet84 84,85,86,87 etp22 22
|
||||||
Ethernet88 88,89,90,91 etp23
|
Ethernet88 88,89,90,91 etp23 23
|
||||||
Ethernet92 92,93,94,95 etp24
|
Ethernet92 92,93,94,95 etp24 24
|
||||||
Ethernet96 96,97,98,99 etp25
|
Ethernet96 96,97,98,99 etp25 25
|
||||||
Ethernet100 100,101,102,103 etp26
|
Ethernet100 100,101,102,103 etp26 26
|
||||||
Ethernet104 104,105,106,107 etp27
|
Ethernet104 104,105,106,107 etp27 27
|
||||||
Ethernet108 108,109,110,111 etp28
|
Ethernet108 108,109,110,111 etp28 28
|
||||||
Ethernet112 112,113,114,115 etp29
|
Ethernet112 112,113,114,115 etp29 29
|
||||||
Ethernet116 116,117,118,119 etp30
|
Ethernet116 116,117,118,119 etp30 30
|
||||||
Ethernet120 120,121,122,123 etp31
|
Ethernet120 120,121,122,123 etp31 31
|
||||||
Ethernet124 124,125,126,127 etp32
|
Ethernet124 124,125,126,127 etp32 32
|
||||||
Ethernet128 128,129,130,131 etp33
|
Ethernet128 128,129,130,131 etp33 33
|
||||||
Ethernet132 132,133,134,135 etp34
|
Ethernet132 132,133,134,135 etp34 34
|
||||||
Ethernet136 136,137,138,139 etp35
|
Ethernet136 136,137,138,139 etp35 35
|
||||||
Ethernet140 140,141,142,143 etp36
|
Ethernet140 140,141,142,143 etp36 36
|
||||||
Ethernet144 144,145,146,147 etp37
|
Ethernet144 144,145,146,147 etp37 37
|
||||||
Ethernet148 148,149,150,151 etp38
|
Ethernet148 148,149,150,151 etp38 38
|
||||||
Ethernet152 152,153,154,155 etp39
|
Ethernet152 152,153,154,155 etp39 39
|
||||||
Ethernet156 156,157,158,159 etp40
|
Ethernet156 156,157,158,159 etp40 40
|
||||||
Ethernet160 160,161,162,163 etp41
|
Ethernet160 160,161,162,163 etp41 41
|
||||||
Ethernet164 164,165,166,167 etp42
|
Ethernet164 164,165,166,167 etp42 42
|
||||||
Ethernet168 168,169,170,171 etp43
|
Ethernet168 168,169,170,171 etp43 43
|
||||||
Ethernet172 172,173,174,175 etp44
|
Ethernet172 172,173,174,175 etp44 44
|
||||||
Ethernet176 176,177,178,179 etp45
|
Ethernet176 176,177,178,179 etp45 45
|
||||||
Ethernet180 180,181,182,183 etp46
|
Ethernet180 180,181,182,183 etp46 46
|
||||||
Ethernet184 184,185,186,187 etp47
|
Ethernet184 184,185,186,187 etp47 47
|
||||||
Ethernet188 188,189,190,191 etp48
|
Ethernet188 188,189,190,191 etp48 48
|
||||||
Ethernet192 192,193,194,195 etp49
|
Ethernet192 192,193,194,195 etp49 49
|
||||||
Ethernet196 196,197,198,199 etp50
|
Ethernet196 196,197,198,199 etp50 50
|
||||||
Ethernet200 200,201,202,203 etp51
|
Ethernet200 200,201,202,203 etp51 51
|
||||||
Ethernet204 204,205,206,207 etp52
|
Ethernet204 204,205,206,207 etp52 52
|
||||||
Ethernet208 208,209,210,211 etp53
|
Ethernet208 208,209,210,211 etp53 53
|
||||||
Ethernet212 212,213,214,215 etp54
|
Ethernet212 212,213,214,215 etp54 54
|
||||||
Ethernet216 216,217,218,219 etp55
|
Ethernet216 216,217,218,219 etp55 55
|
||||||
Ethernet220 220,221,222,223 etp56
|
Ethernet220 220,221,222,223 etp56 56
|
||||||
Ethernet224 224,225,226,227 etp57
|
Ethernet224 224,225,226,227 etp57 57
|
||||||
Ethernet228 228,229,230,231 etp58
|
Ethernet228 228,229,230,231 etp58 58
|
||||||
Ethernet232 232,233,234,235 etp59
|
Ethernet232 232,233,234,235 etp59 59
|
||||||
Ethernet236 236,237,238,239 etp60
|
Ethernet236 236,237,238,239 etp60 60
|
||||||
Ethernet240 240,241,242,243 etp61
|
Ethernet240 240,241,242,243 etp61 61
|
||||||
Ethernet244 244,245,246,247 etp62
|
Ethernet244 244,245,246,247 etp62 62
|
||||||
Ethernet248 248,249,250,251 etp63
|
Ethernet248 248,249,250,251 etp63 63
|
||||||
Ethernet252 252,253,254,255 etp64
|
Ethernet252 252,253,254,255 etp64 64
|
||||||
|
@ -1,121 +1,121 @@
|
|||||||
# name lanes alias index speed
|
# name lanes alias index speed
|
||||||
Ethernet0 0,1 etp1a 0 50000
|
Ethernet0 0,1 etp1a 1 50000
|
||||||
Ethernet2 2,3 etp1b 0 50000
|
Ethernet2 2,3 etp1b 1 50000
|
||||||
Ethernet4 4,5 etp2a 1 50000
|
Ethernet4 4,5 etp2a 2 50000
|
||||||
Ethernet6 6,7 etp2b 1 50000
|
Ethernet6 6,7 etp2b 2 50000
|
||||||
Ethernet8 8,9 etp3a 2 50000
|
Ethernet8 8,9 etp3a 3 50000
|
||||||
Ethernet10 10,11 etp3b 2 50000
|
Ethernet10 10,11 etp3b 3 50000
|
||||||
Ethernet12 12,13 etp4a 3 50000
|
Ethernet12 12,13 etp4a 4 50000
|
||||||
Ethernet14 14,15 etp4b 3 50000
|
Ethernet14 14,15 etp4b 4 50000
|
||||||
Ethernet16 16,17 etp5a 4 50000
|
Ethernet16 16,17 etp5a 5 50000
|
||||||
Ethernet18 18,19 etp5b 4 50000
|
Ethernet18 18,19 etp5b 5 50000
|
||||||
Ethernet20 20,21 etp6a 5 50000
|
Ethernet20 20,21 etp6a 6 50000
|
||||||
Ethernet22 22,23 etp6b 5 50000
|
Ethernet22 22,23 etp6b 6 50000
|
||||||
Ethernet24 24,25 etp7a 6 50000
|
Ethernet24 24,25 etp7a 7 50000
|
||||||
Ethernet26 26,27 etp7b 6 50000
|
Ethernet26 26,27 etp7b 7 50000
|
||||||
Ethernet28 28,29 etp8a 7 50000
|
Ethernet28 28,29 etp8a 8 50000
|
||||||
Ethernet30 30,31 etp8b 7 50000
|
Ethernet30 30,31 etp8b 8 50000
|
||||||
Ethernet32 32,33 etp9a 8 50000
|
Ethernet32 32,33 etp9a 9 50000
|
||||||
Ethernet34 34,35 etp9b 8 50000
|
Ethernet34 34,35 etp9b 9 50000
|
||||||
Ethernet36 36,37 etp10a 9 50000
|
Ethernet36 36,37 etp10a 10 50000
|
||||||
Ethernet38 38,39 etp10b 9 50000
|
Ethernet38 38,39 etp10b 10 50000
|
||||||
Ethernet40 40,41 etp11a 10 50000
|
Ethernet40 40,41 etp11a 11 50000
|
||||||
Ethernet42 42,43 etp11b 10 50000
|
Ethernet42 42,43 etp11b 11 50000
|
||||||
Ethernet44 44,45 etp12a 11 50000
|
Ethernet44 44,45 etp12a 12 50000
|
||||||
Ethernet46 46,47 etp12b 11 50000
|
Ethernet46 46,47 etp12b 12 50000
|
||||||
Ethernet48 48,49 etp13a 12 50000
|
Ethernet48 48,49 etp13a 13 50000
|
||||||
Ethernet50 50,51 etp13b 12 50000
|
Ethernet50 50,51 etp13b 13 50000
|
||||||
Ethernet52 52,53 etp14a 13 50000
|
Ethernet52 52,53 etp14a 14 50000
|
||||||
Ethernet54 54,55 etp14b 13 50000
|
Ethernet54 54,55 etp14b 14 50000
|
||||||
Ethernet56 56,57 etp15a 14 50000
|
Ethernet56 56,57 etp15a 15 50000
|
||||||
Ethernet58 58,59 etp15b 14 50000
|
Ethernet58 58,59 etp15b 15 50000
|
||||||
Ethernet60 60,61 etp16a 15 50000
|
Ethernet60 60,61 etp16a 16 50000
|
||||||
Ethernet62 62,63 etp16b 15 50000
|
Ethernet62 62,63 etp16b 16 50000
|
||||||
Ethernet64 64,65 etp17a 16 50000
|
Ethernet64 64,65 etp17a 17 50000
|
||||||
Ethernet66 66,67 etp17b 16 50000
|
Ethernet66 66,67 etp17b 17 50000
|
||||||
Ethernet68 68,69 etp18a 17 50000
|
Ethernet68 68,69 etp18a 18 50000
|
||||||
Ethernet70 70,71 etp18b 17 50000
|
Ethernet70 70,71 etp18b 18 50000
|
||||||
Ethernet72 72,73 etp19a 18 50000
|
Ethernet72 72,73 etp19a 19 50000
|
||||||
Ethernet74 74,75 etp19b 18 50000
|
Ethernet74 74,75 etp19b 19 50000
|
||||||
Ethernet76 76,77 etp20a 19 50000
|
Ethernet76 76,77 etp20a 20 50000
|
||||||
Ethernet78 78,79 etp20b 19 50000
|
Ethernet78 78,79 etp20b 20 50000
|
||||||
Ethernet80 80,81 etp21a 20 50000
|
Ethernet80 80,81 etp21a 21 50000
|
||||||
Ethernet82 82,83 etp21b 20 50000
|
Ethernet82 82,83 etp21b 21 50000
|
||||||
Ethernet84 84,85 etp22a 21 50000
|
Ethernet84 84,85 etp22a 22 50000
|
||||||
Ethernet86 86,87 etp22b 21 50000
|
Ethernet86 86,87 etp22b 22 50000
|
||||||
Ethernet88 88,89 etp23a 22 50000
|
Ethernet88 88,89 etp23a 23 50000
|
||||||
Ethernet90 90,91 etp23b 22 50000
|
Ethernet90 90,91 etp23b 23 50000
|
||||||
Ethernet92 92,93 etp24a 23 50000
|
Ethernet92 92,93 etp24a 24 50000
|
||||||
Ethernet94 94,95 etp24b 23 50000
|
Ethernet94 94,95 etp24b 24 50000
|
||||||
Ethernet96 96,97,98,99 etp25 24 100000
|
Ethernet96 96,97,98,99 etp25 25 100000
|
||||||
Ethernet100 100,101,102,103 etp26 25 100000
|
Ethernet100 100,101,102,103 etp26 26 100000
|
||||||
Ethernet104 104,105 etp27a 26 50000
|
Ethernet104 104,105 etp27a 27 50000
|
||||||
Ethernet106 106,107 etp27b 26 50000
|
Ethernet106 106,107 etp27b 27 50000
|
||||||
Ethernet108 108,109 etp28a 27 50000
|
Ethernet108 108,109 etp28a 28 50000
|
||||||
Ethernet110 110,111 etp28b 27 50000
|
Ethernet110 110,111 etp28b 28 50000
|
||||||
Ethernet112 112,113,114,115 etp29 28 100000
|
Ethernet112 112,113,114,115 etp29 29 100000
|
||||||
Ethernet116 116,117,118,119 etp30 29 100000
|
Ethernet116 116,117,118,119 etp30 30 100000
|
||||||
Ethernet120 120,121 etp31a 30 50000
|
Ethernet120 120,121 etp31a 31 50000
|
||||||
Ethernet122 122,123 etp31b 30 50000
|
Ethernet122 122,123 etp31b 31 50000
|
||||||
Ethernet124 124,125 etp32a 31 50000
|
Ethernet124 124,125 etp32a 32 50000
|
||||||
Ethernet126 126,127 etp32b 31 50000
|
Ethernet126 126,127 etp32b 32 50000
|
||||||
Ethernet128 128,129,130,131 etp33 32 100000
|
Ethernet128 128,129,130,131 etp33 33 100000
|
||||||
Ethernet132 132,133,134,135 etp34 33 100000
|
Ethernet132 132,133,134,135 etp34 34 100000
|
||||||
Ethernet136 136,137 etp35a 34 50000
|
Ethernet136 136,137 etp35a 35 50000
|
||||||
Ethernet138 138,139 etp35b 34 50000
|
Ethernet138 138,139 etp35b 35 50000
|
||||||
Ethernet140 140,141 etp36a 35 50000
|
Ethernet140 140,141 etp36a 36 50000
|
||||||
Ethernet142 142,143 etp36b 35 50000
|
Ethernet142 142,143 etp36b 36 50000
|
||||||
Ethernet144 144,145,146,147 etp37 36 100000
|
Ethernet144 144,145,146,147 etp37 37 100000
|
||||||
Ethernet148 148,149,150,151 etp38 37 100000
|
Ethernet148 148,149,150,151 etp38 38 100000
|
||||||
Ethernet152 152,153 etp39a 38 50000
|
Ethernet152 152,153 etp39a 39 50000
|
||||||
Ethernet154 154,155 etp39b 38 50000
|
Ethernet154 154,155 etp39b 39 50000
|
||||||
Ethernet156 156,157 etp40a 39 50000
|
Ethernet156 156,157 etp40a 40 50000
|
||||||
Ethernet158 158,159 etp40b 39 50000
|
Ethernet158 158,159 etp40b 40 50000
|
||||||
Ethernet160 160,161 etp41a 40 50000
|
Ethernet160 160,161 etp41a 41 50000
|
||||||
Ethernet162 162,163 etp41b 40 50000
|
Ethernet162 162,163 etp41b 41 50000
|
||||||
Ethernet164 164,165 etp42a 41 50000
|
Ethernet164 164,165 etp42a 42 50000
|
||||||
Ethernet166 166,167 etp42b 41 50000
|
Ethernet166 166,167 etp42b 42 50000
|
||||||
Ethernet168 168,169 etp43a 42 50000
|
Ethernet168 168,169 etp43a 43 50000
|
||||||
Ethernet170 170,171 etp43b 42 50000
|
Ethernet170 170,171 etp43b 43 50000
|
||||||
Ethernet172 172,173 etp44a 43 50000
|
Ethernet172 172,173 etp44a 44 50000
|
||||||
Ethernet174 174,175 etp44b 43 50000
|
Ethernet174 174,175 etp44b 44 50000
|
||||||
Ethernet176 176,177 etp45a 44 50000
|
Ethernet176 176,177 etp45a 45 50000
|
||||||
Ethernet178 178,179 etp45b 44 50000
|
Ethernet178 178,179 etp45b 45 50000
|
||||||
Ethernet180 180,181 etp46a 45 50000
|
Ethernet180 180,181 etp46a 46 50000
|
||||||
Ethernet182 182,183 etp46b 45 50000
|
Ethernet182 182,183 etp46b 46 50000
|
||||||
Ethernet184 184,185 etp47a 46 50000
|
Ethernet184 184,185 etp47a 47 50000
|
||||||
Ethernet186 186,187 etp47b 46 50000
|
Ethernet186 186,187 etp47b 47 50000
|
||||||
Ethernet188 188,189 etp48a 47 50000
|
Ethernet188 188,189 etp48a 48 50000
|
||||||
Ethernet190 190,191 etp48b 47 50000
|
Ethernet190 190,191 etp48b 48 50000
|
||||||
Ethernet192 192,193 etp49a 48 50000
|
Ethernet192 192,193 etp49a 49 50000
|
||||||
Ethernet194 194,195 etp49b 48 50000
|
Ethernet194 194,195 etp49b 49 50000
|
||||||
Ethernet196 196,197 etp50a 49 50000
|
Ethernet196 196,197 etp50a 50 50000
|
||||||
Ethernet198 198,199 etp50b 49 50000
|
Ethernet198 198,199 etp50b 50 50000
|
||||||
Ethernet200 200,201 etp51a 50 50000
|
Ethernet200 200,201 etp51a 51 50000
|
||||||
Ethernet202 202,203 etp51b 50 50000
|
Ethernet202 202,203 etp51b 51 50000
|
||||||
Ethernet204 204,205 etp52a 51 50000
|
Ethernet204 204,205 etp52a 52 50000
|
||||||
Ethernet206 206,207 etp52b 51 50000
|
Ethernet206 206,207 etp52b 52 50000
|
||||||
Ethernet208 208,209 etp53a 52 50000
|
Ethernet208 208,209 etp53a 53 50000
|
||||||
Ethernet210 210,211 etp53b 52 50000
|
Ethernet210 210,211 etp53b 53 50000
|
||||||
Ethernet212 212,213 etp54a 53 50000
|
Ethernet212 212,213 etp54a 54 50000
|
||||||
Ethernet214 214,215 etp54b 53 50000
|
Ethernet214 214,215 etp54b 54 50000
|
||||||
Ethernet216 216,217 etp55a 54 50000
|
Ethernet216 216,217 etp55a 55 50000
|
||||||
Ethernet218 218,219 etp55b 54 50000
|
Ethernet218 218,219 etp55b 55 50000
|
||||||
Ethernet220 220,221 etp56a 55 50000
|
Ethernet220 220,221 etp56a 56 50000
|
||||||
Ethernet222 222,223 etp56b 55 50000
|
Ethernet222 222,223 etp56b 56 50000
|
||||||
Ethernet224 224,225 etp57a 56 50000
|
Ethernet224 224,225 etp57a 57 50000
|
||||||
Ethernet226 226,227 etp57b 56 50000
|
Ethernet226 226,227 etp57b 57 50000
|
||||||
Ethernet228 228,229 etp58a 57 50000
|
Ethernet228 228,229 etp58a 58 50000
|
||||||
Ethernet230 230,231 etp58b 57 50000
|
Ethernet230 230,231 etp58b 58 50000
|
||||||
Ethernet232 232,233 etp59a 58 50000
|
Ethernet232 232,233 etp59a 59 50000
|
||||||
Ethernet234 234,235 etp59b 58 50000
|
Ethernet234 234,235 etp59b 59 50000
|
||||||
Ethernet236 236,237 etp60a 59 50000
|
Ethernet236 236,237 etp60a 60 50000
|
||||||
Ethernet238 238,239 etp60b 59 50000
|
Ethernet238 238,239 etp60b 60 50000
|
||||||
Ethernet240 240,241 etp61a 60 50000
|
Ethernet240 240,241 etp61a 61 50000
|
||||||
Ethernet242 242,243 etp61b 60 50000
|
Ethernet242 242,243 etp61b 61 50000
|
||||||
Ethernet244 244,245 etp62a 61 50000
|
Ethernet244 244,245 etp62a 62 50000
|
||||||
Ethernet246 246,247 etp62b 61 50000
|
Ethernet246 246,247 etp62b 62 50000
|
||||||
Ethernet248 248,249 etp63a 62 50000
|
Ethernet248 248,249 etp63a 63 50000
|
||||||
Ethernet250 250,251 etp63b 62 50000
|
Ethernet250 250,251 etp63b 63 50000
|
||||||
Ethernet252 252,253 etp64a 63 50000
|
Ethernet252 252,253 etp64a 64 50000
|
||||||
Ethernet254 254,255 etp64b 63 50000
|
Ethernet254 254,255 etp64b 64 50000
|
||||||
|
@ -1,77 +1,77 @@
|
|||||||
# name lanes alias index speed
|
# name lanes alias index speed
|
||||||
Ethernet0 0,1,2,3 etp1 0 100000
|
Ethernet0 0,1,2,3 etp1 1 100000
|
||||||
Ethernet4 4,5,6,7 etp2 1 100000
|
Ethernet4 4,5,6,7 etp2 2 100000
|
||||||
Ethernet8 8,9,10,11 etp3 2 100000
|
Ethernet8 8,9,10,11 etp3 3 100000
|
||||||
Ethernet12 12,13,14,15 etp4 3 100000
|
Ethernet12 12,13,14,15 etp4 4 100000
|
||||||
Ethernet16 16,17,18,19 etp5 4 100000
|
Ethernet16 16,17,18,19 etp5 5 100000
|
||||||
Ethernet20 20,21,22,23 etp6 5 100000
|
Ethernet20 20,21,22,23 etp6 6 100000
|
||||||
Ethernet24 24,25,26,27 etp7 6 100000
|
Ethernet24 24,25,26,27 etp7 7 100000
|
||||||
Ethernet28 28,29,30,31 etp8 7 100000
|
Ethernet28 28,29,30,31 etp8 8 100000
|
||||||
Ethernet32 32,33 etp9a 8 50000
|
Ethernet32 32,33 etp9a 9 50000
|
||||||
Ethernet34 34,35 etp9b 8 50000
|
Ethernet34 34,35 etp9b 9 50000
|
||||||
Ethernet36 36,37 etp10a 9 50000
|
Ethernet36 36,37 etp10a 10 50000
|
||||||
Ethernet38 38,39 etp10b 9 50000
|
Ethernet38 38,39 etp10b 10 50000
|
||||||
Ethernet40 40,41 etp11a 10 50000
|
Ethernet40 40,41 etp11a 11 50000
|
||||||
Ethernet42 42,43 etp11b 10 50000
|
Ethernet42 42,43 etp11b 11 50000
|
||||||
Ethernet44 44,45 etp12a 11 50000
|
Ethernet44 44,45 etp12a 12 50000
|
||||||
Ethernet46 46,47 etp12b 11 50000
|
Ethernet46 46,47 etp12b 12 50000
|
||||||
Ethernet48 48,49,50,51 etp13 12 100000
|
Ethernet48 48,49,50,51 etp13 13 100000
|
||||||
Ethernet52 52,53,54,55 etp14 13 100000
|
Ethernet52 52,53,54,55 etp14 14 100000
|
||||||
Ethernet56 56,57,58,59 etp15 14 100000
|
Ethernet56 56,57,58,59 etp15 15 100000
|
||||||
Ethernet60 60,61,62,63 etp16 15 100000
|
Ethernet60 60,61,62,63 etp16 16 100000
|
||||||
Ethernet64 64,65,66,67 etp17 16 100000
|
Ethernet64 64,65,66,67 etp17 17 100000
|
||||||
Ethernet68 68,69,70,71 etp18 17 100000
|
Ethernet68 68,69,70,71 etp18 18 100000
|
||||||
Ethernet72 72,73,74,75 etp19 18 100000
|
Ethernet72 72,73,74,75 etp19 19 100000
|
||||||
Ethernet76 76,77,78,79 etp20 19 100000
|
Ethernet76 76,77,78,79 etp20 20 100000
|
||||||
Ethernet80 80,81,82,83 etp21 20 100000
|
Ethernet80 80,81,82,83 etp21 21 100000
|
||||||
Ethernet84 84,85,86,87 etp22 21 100000
|
Ethernet84 84,85,86,87 etp22 22 100000
|
||||||
Ethernet88 88,89,90,91 etp23 22 100000
|
Ethernet88 88,89,90,91 etp23 23 100000
|
||||||
Ethernet92 92,93,94,95 etp24 23 100000
|
Ethernet92 92,93,94,95 etp24 24 100000
|
||||||
Ethernet96 96,97,98,99 etp25 24 100000
|
Ethernet96 96,97,98,99 etp25 25 100000
|
||||||
Ethernet100 100,101,102,103 etp26 25 100000
|
Ethernet100 100,101,102,103 etp26 26 100000
|
||||||
Ethernet104 104,105 etp27a 26 50000
|
Ethernet104 104,105 etp27a 27 50000
|
||||||
Ethernet106 106,107 etp27b 26 50000
|
Ethernet106 106,107 etp27b 27 50000
|
||||||
Ethernet108 108,109 etp28a 27 50000
|
Ethernet108 108,109 etp28a 28 50000
|
||||||
Ethernet110 110,111 etp28b 27 50000
|
Ethernet110 110,111 etp28b 28 50000
|
||||||
Ethernet112 112,113,114,115 etp29 28 100000
|
Ethernet112 112,113,114,115 etp29 29 100000
|
||||||
Ethernet116 116,117,118,119 etp30 29 100000
|
Ethernet116 116,117,118,119 etp30 30 100000
|
||||||
Ethernet120 120,121,122,123 etp31 30 100000
|
Ethernet120 120,121,122,123 etp31 31 100000
|
||||||
Ethernet124 124,125,126,127 etp32 31 100000
|
Ethernet124 124,125,126,127 etp32 32 100000
|
||||||
Ethernet128 128,129,130,131 etp33 32 100000
|
Ethernet128 128,129,130,131 etp33 33 100000
|
||||||
Ethernet132 132,133,134,135 etp34 33 100000
|
Ethernet132 132,133,134,135 etp34 34 100000
|
||||||
Ethernet136 136,137,138,139 etp35 34 100000
|
Ethernet136 136,137,138,139 etp35 35 100000
|
||||||
Ethernet140 140,141,142,143 etp36 35 100000
|
Ethernet140 140,141,142,143 etp36 36 100000
|
||||||
Ethernet144 144,145,146,147 etp37 36 100000
|
Ethernet144 144,145,146,147 etp37 37 100000
|
||||||
Ethernet148 148,149,150,151 etp38 37 100000
|
Ethernet148 148,149,150,151 etp38 38 100000
|
||||||
Ethernet152 152,153,154,155 etp39 38 100000
|
Ethernet152 152,153,154,155 etp39 39 100000
|
||||||
Ethernet156 156,157,158,159 etp40 39 100000
|
Ethernet156 156,157,158,159 etp40 40 100000
|
||||||
Ethernet160 160,161,162,163 etp41 40 100000
|
Ethernet160 160,161,162,163 etp41 41 100000
|
||||||
Ethernet164 164,165,166,167 etp42 41 100000
|
Ethernet164 164,165,166,167 etp42 42 100000
|
||||||
Ethernet168 168,169,170,171 etp43 42 100000
|
Ethernet168 168,169,170,171 etp43 43 100000
|
||||||
Ethernet172 172,173,174,175 etp44 43 100000
|
Ethernet172 172,173,174,175 etp44 44 100000
|
||||||
Ethernet176 176,177 etp45a 44 50000
|
Ethernet176 176,177 etp45a 45 50000
|
||||||
Ethernet178 178,179 etp45b 44 50000
|
Ethernet178 178,179 etp45b 45 50000
|
||||||
Ethernet180 180,181 etp46a 45 50000
|
Ethernet180 180,181 etp46a 46 50000
|
||||||
Ethernet182 182,183 etp46b 45 50000
|
Ethernet182 182,183 etp46b 46 50000
|
||||||
Ethernet184 184,185 etp47a 46 50000
|
Ethernet184 184,185 etp47a 47 50000
|
||||||
Ethernet186 186,187 etp47b 46 50000
|
Ethernet186 186,187 etp47b 47 50000
|
||||||
Ethernet188 188,189 etp48a 47 50000
|
Ethernet188 188,189 etp48a 48 50000
|
||||||
Ethernet190 190,191 etp48b 47 50000
|
Ethernet190 190,191 etp48b 48 50000
|
||||||
Ethernet192 192,193,194,195 etp49 48 100000
|
Ethernet192 192,193,194,195 etp49 49 100000
|
||||||
Ethernet196 196,197,198,199 etp50 49 100000
|
Ethernet196 196,197,198,199 etp50 50 100000
|
||||||
Ethernet200 200,201,202,203 etp51 50 100000
|
Ethernet200 200,201,202,203 etp51 51 100000
|
||||||
Ethernet204 204,205,206,207 etp52 51 100000
|
Ethernet204 204,205,206,207 etp52 52 100000
|
||||||
Ethernet208 208,209,210,211 etp53 52 100000
|
Ethernet208 208,209,210,211 etp53 53 100000
|
||||||
Ethernet212 212,213,214,215 etp54 53 100000
|
Ethernet212 212,213,214,215 etp54 54 100000
|
||||||
Ethernet216 216,217,218,219 etp55 54 100000
|
Ethernet216 216,217,218,219 etp55 55 100000
|
||||||
Ethernet220 220,221,222,223 etp56 55 100000
|
Ethernet220 220,221,222,223 etp56 56 100000
|
||||||
Ethernet224 224,225,226,227 etp57 56 100000
|
Ethernet224 224,225,226,227 etp57 57 100000
|
||||||
Ethernet228 228,229,230,231 etp58 57 100000
|
Ethernet228 228,229,230,231 etp58 58 100000
|
||||||
Ethernet232 232,233,234,235 etp59 58 100000
|
Ethernet232 232,233,234,235 etp59 59 100000
|
||||||
Ethernet236 236,237,238,239 etp60 59 100000
|
Ethernet236 236,237,238,239 etp60 60 100000
|
||||||
Ethernet240 240,241 etp61a 60 50000
|
Ethernet240 240,241 etp61a 61 50000
|
||||||
Ethernet242 242,243 etp61b 60 50000
|
Ethernet242 242,243 etp61b 61 50000
|
||||||
Ethernet244 244,245 etp62a 61 50000
|
Ethernet244 244,245 etp62a 62 50000
|
||||||
Ethernet246 246,247 etp62b 61 50000
|
Ethernet246 246,247 etp62b 62 50000
|
||||||
Ethernet248 248,249,250,251 etp63 62 100000
|
Ethernet248 248,249,250,251 etp63 63 100000
|
||||||
Ethernet252 252,253,254,255 etp64 63 100000
|
Ethernet252 252,253,254,255 etp64 64 100000
|
@ -1,79 +1,79 @@
|
|||||||
# name lanes alias index speed
|
# name lanes alias index speed
|
||||||
Ethernet0 0,1,2,3 etp1 0 100000
|
Ethernet0 0,1,2,3 etp1 1 100000
|
||||||
Ethernet4 4,5,6,7 etp2 1 100000
|
Ethernet4 4,5,6,7 etp2 2 100000
|
||||||
Ethernet8 8,9,10,11 etp3 2 100000
|
Ethernet8 8,9,10,11 etp3 3 100000
|
||||||
Ethernet12 12,13,14,15 etp4 3 100000
|
Ethernet12 12,13,14,15 etp4 4 100000
|
||||||
Ethernet16 16,17,18,19 etp5 4 100000
|
Ethernet16 16,17,18,19 etp5 5 100000
|
||||||
Ethernet20 20,21,22,23 etp6 5 100000
|
Ethernet20 20,21,22,23 etp6 6 100000
|
||||||
Ethernet24 24,25,26,27 etp7 6 100000
|
Ethernet24 24,25,26,27 etp7 7 100000
|
||||||
Ethernet28 28,29,30,31 etp8 7 100000
|
Ethernet28 28,29,30,31 etp8 8 100000
|
||||||
Ethernet32 32,33 etp9a 8 50000
|
Ethernet32 32,33 etp9a 9 50000
|
||||||
Ethernet34 34,35 etp9b 8 50000
|
Ethernet34 34,35 etp9b 9 50000
|
||||||
Ethernet36 36,37 etp10a 9 50000
|
Ethernet36 36,37 etp10a 10 50000
|
||||||
Ethernet38 38,39 etp10b 9 50000
|
Ethernet38 38,39 etp10b 10 50000
|
||||||
Ethernet40 40,41 etp11a 10 50000
|
Ethernet40 40,41 etp11a 11 50000
|
||||||
Ethernet42 42,43 etp11b 10 50000
|
Ethernet42 42,43 etp11b 11 50000
|
||||||
Ethernet44 44,45 etp12a 11 50000
|
Ethernet44 44,45 etp12a 12 50000
|
||||||
Ethernet46 46,47 etp12b 11 50000
|
Ethernet46 46,47 etp12b 12 50000
|
||||||
Ethernet48 48,49,50,51 etp13 12 100000
|
Ethernet48 48,49,50,51 etp13 13 100000
|
||||||
Ethernet52 52,53,54,55 etp14 13 100000
|
Ethernet52 52,53,54,55 etp14 14 100000
|
||||||
Ethernet56 56,57,58,59 etp15 14 100000
|
Ethernet56 56,57,58,59 etp15 15 100000
|
||||||
Ethernet60 60,61,62,63 etp16 15 100000
|
Ethernet60 60,61,62,63 etp16 16 100000
|
||||||
Ethernet64 64,65,66,67 etp17 16 100000
|
Ethernet64 64,65,66,67 etp17 17 100000
|
||||||
Ethernet68 68,69,70,71 etp18 17 100000
|
Ethernet68 68,69,70,71 etp18 18 100000
|
||||||
Ethernet72 72,73,74,75 etp19 18 100000
|
Ethernet72 72,73,74,75 etp19 19 100000
|
||||||
Ethernet76 76,77,78,79 etp20 19 100000
|
Ethernet76 76,77,78,79 etp20 20 100000
|
||||||
Ethernet80 80,81,82,83 etp21 20 100000
|
Ethernet80 80,81,82,83 etp21 21 100000
|
||||||
Ethernet84 84,85,86,87 etp22 21 100000
|
Ethernet84 84,85,86,87 etp22 22 100000
|
||||||
Ethernet88 88,89,90,91 etp23 22 100000
|
Ethernet88 88,89,90,91 etp23 23 100000
|
||||||
Ethernet92 92,93,94,95 etp24 23 100000
|
Ethernet92 92,93,94,95 etp24 24 100000
|
||||||
Ethernet96 96,97,98,99 etp25 24 100000
|
Ethernet96 96,97,98,99 etp25 25 100000
|
||||||
Ethernet100 100,101,102,103 etp26 25 100000
|
Ethernet100 100,101,102,103 etp26 26 100000
|
||||||
Ethernet104 104,105 etp27a 26 50000
|
Ethernet104 104,105 etp27a 27 50000
|
||||||
Ethernet106 106,107 etp27b 26 50000
|
Ethernet106 106,107 etp27b 27 50000
|
||||||
Ethernet108 108,109 etp28a 27 50000
|
Ethernet108 108,109 etp28a 28 50000
|
||||||
Ethernet110 110,111 etp28b 27 50000
|
Ethernet110 110,111 etp28b 28 50000
|
||||||
Ethernet112 112,113,114,115 etp29 28 100000
|
Ethernet112 112,113,114,115 etp29 29 100000
|
||||||
Ethernet116 116,117,118,119 etp30 29 100000
|
Ethernet116 116,117,118,119 etp30 30 100000
|
||||||
Ethernet120 120,121,122,123 etp31 30 100000
|
Ethernet120 120,121,122,123 etp31 31 100000
|
||||||
Ethernet124 124,125,126,127 etp32 31 100000
|
Ethernet124 124,125,126,127 etp32 32 100000
|
||||||
Ethernet128 128,129,130,131 etp33 32 100000
|
Ethernet128 128,129,130,131 etp33 33 100000
|
||||||
Ethernet132 132,133,134,135 etp34 33 100000
|
Ethernet132 132,133,134,135 etp34 34 100000
|
||||||
Ethernet136 136,137,138,139 etp35 34 100000
|
Ethernet136 136,137,138,139 etp35 35 100000
|
||||||
Ethernet140 140,141,142,143 etp36 35 100000
|
Ethernet140 140,141,142,143 etp36 36 100000
|
||||||
Ethernet144 144,145,146,147 etp37 36 100000
|
Ethernet144 144,145,146,147 etp37 37 100000
|
||||||
Ethernet148 148,149,150,151 etp38 37 100000
|
Ethernet148 148,149,150,151 etp38 38 100000
|
||||||
Ethernet152 152,153,154,155 etp39 38 100000
|
Ethernet152 152,153,154,155 etp39 38 100000
|
||||||
Ethernet156 156,157,158,159 etp40 39 100000
|
Ethernet156 156,157,158,159 etp40 40 100000
|
||||||
Ethernet160 160,161,162,163 etp41 40 100000
|
Ethernet160 160,161,162,163 etp41 41 100000
|
||||||
Ethernet164 164,165,166,167 etp42 41 100000
|
Ethernet164 164,165,166,167 etp42 42 100000
|
||||||
Ethernet168 168,169,170,171 etp43 42 100000
|
Ethernet168 168,169,170,171 etp43 43 100000
|
||||||
Ethernet172 172,173,174,175 etp44 43 100000
|
Ethernet172 172,173,174,175 etp44 44 100000
|
||||||
Ethernet176 176,177 etp45a 44 50000
|
Ethernet176 176,177 etp45a 45 50000
|
||||||
Ethernet178 178,179 etp45b 44 50000
|
Ethernet178 178,179 etp45b 45 50000
|
||||||
Ethernet180 180,181 etp46a 45 50000
|
Ethernet180 180,181 etp46a 46 50000
|
||||||
Ethernet182 182,183 etp46b 45 50000
|
Ethernet182 182,183 etp46b 46 50000
|
||||||
Ethernet184 184,185 etp47a 46 50000
|
Ethernet184 184,185 etp47a 47 50000
|
||||||
Ethernet186 186,187 etp47b 46 50000
|
Ethernet186 186,187 etp47b 47 50000
|
||||||
Ethernet188 188,189 etp48a 47 50000
|
Ethernet188 188,189 etp48a 48 50000
|
||||||
Ethernet190 190,191 etp48b 47 50000
|
Ethernet190 190,191 etp48b 48 50000
|
||||||
Ethernet192 192,193,194,195 etp49 48 100000
|
Ethernet192 192,193,194,195 etp49 49 100000
|
||||||
Ethernet196 196,197,198,199 etp50 49 100000
|
Ethernet196 196,197,198,199 etp50 50 100000
|
||||||
Ethernet200 200,201,202,203 etp51 50 100000
|
Ethernet200 200,201,202,203 etp51 51 100000
|
||||||
Ethernet204 204,205,206,207 etp52 51 100000
|
Ethernet204 204,205,206,207 etp52 52 100000
|
||||||
Ethernet208 208,209,210,211 etp53 52 100000
|
Ethernet208 208,209,210,211 etp53 53 100000
|
||||||
Ethernet212 212,213,214,215 etp54 53 100000
|
Ethernet212 212,213,214,215 etp54 54 100000
|
||||||
Ethernet216 216,217,218,219 etp55 54 100000
|
Ethernet216 216,217,218,219 etp55 55 100000
|
||||||
Ethernet220 220,221,222,223 etp56 55 100000
|
Ethernet220 220,221,222,223 etp56 56 100000
|
||||||
Ethernet224 224,225,226,227 etp57 56 100000
|
Ethernet224 224,225,226,227 etp57 57 100000
|
||||||
Ethernet228 228,229,230,231 etp58 57 100000
|
Ethernet228 228,229,230,231 etp58 58 100000
|
||||||
Ethernet232 232,233,234,235 etp59 58 100000
|
Ethernet232 232,233,234,235 etp59 59 100000
|
||||||
Ethernet236 236,237,238,239 etp60 59 100000
|
Ethernet236 236,237,238,239 etp60 60 100000
|
||||||
Ethernet240 240,241 etp61a 60 50000
|
Ethernet240 240,241 etp61a 61 50000
|
||||||
Ethernet242 242,243 etp61b 60 50000
|
Ethernet242 242,243 etp61b 61 50000
|
||||||
Ethernet244 244,245 etp62a 61 50000
|
Ethernet244 244,245 etp62a 62 50000
|
||||||
Ethernet246 246,247 etp62b 61 50000
|
Ethernet246 246,247 etp62b 62 50000
|
||||||
Ethernet248 248,249 etp63a 62 50000
|
Ethernet248 248,249 etp63a 63 50000
|
||||||
Ethernet250 250,251 etp63b 62 50000
|
Ethernet250 250,251 etp63b 63 50000
|
||||||
Ethernet252 252,253 etp64a 63 50000
|
Ethernet252 252,253 etp64a 64 50000
|
||||||
Ethernet254 254,255 etp64b 63 50000
|
Ethernet254 254,255 etp64b 64 50000
|
@ -1,65 +1,65 @@
|
|||||||
# name lanes alias index
|
# name lanes alias index
|
||||||
Ethernet0 0,1,2,3 etp1 0
|
Ethernet0 0,1,2,3 etp1 1
|
||||||
Ethernet8 8,9,10,11 etp2 1
|
Ethernet8 8,9,10,11 etp2 2
|
||||||
Ethernet16 16,17,18,19 etp3 2
|
Ethernet16 16,17,18,19 etp3 3
|
||||||
Ethernet24 24,25,26,27 etp4 3
|
Ethernet24 24,25,26,27 etp4 4
|
||||||
Ethernet32 32,33,34,35 etp5 4
|
Ethernet32 32,33,34,35 etp5 5
|
||||||
Ethernet40 40,41,42,43 etp6 5
|
Ethernet40 40,41,42,43 etp6 6
|
||||||
Ethernet48 48,49,50,51 etp7 6
|
Ethernet48 48,49,50,51 etp7 7
|
||||||
Ethernet56 56,57,58,59 etp8 7
|
Ethernet56 56,57,58,59 etp8 8
|
||||||
Ethernet64 64,65,66,67 etp9 8
|
Ethernet64 64,65,66,67 etp9 9
|
||||||
Ethernet72 72,73,74,75 etp10 9
|
Ethernet72 72,73,74,75 etp10 10
|
||||||
Ethernet80 80,81,82,83 etp11 10
|
Ethernet80 80,81,82,83 etp11 11
|
||||||
Ethernet88 88,89,90,91 etp12 11
|
Ethernet88 88,89,90,91 etp12 12
|
||||||
Ethernet96 96,97,98,99 etp13 12
|
Ethernet96 96,97,98,99 etp13 13
|
||||||
Ethernet104 104,105,106,107 etp14 13
|
Ethernet104 104,105,106,107 etp14 14
|
||||||
Ethernet112 112,113,114,115 etp15 14
|
Ethernet112 112,113,114,115 etp15 15
|
||||||
Ethernet120 120,121,122,123 etp16 15
|
Ethernet120 120,121,122,123 etp16 16
|
||||||
Ethernet128 128,129,130,131 etp17 16
|
Ethernet128 128,129,130,131 etp17 17
|
||||||
Ethernet136 136,137,138,139 etp18 17
|
Ethernet136 136,137,138,139 etp18 18
|
||||||
Ethernet144 144,145,146,147 etp19 18
|
Ethernet144 144,145,146,147 etp19 19
|
||||||
Ethernet152 152,153,154,155 etp20 19
|
Ethernet152 152,153,154,155 etp20 20
|
||||||
Ethernet160 160,161,162,163 etp21 20
|
Ethernet160 160,161,162,163 etp21 21
|
||||||
Ethernet168 168,169,170,171 etp22 21
|
Ethernet168 168,169,170,171 etp22 22
|
||||||
Ethernet176 176,177,178,179 etp23 22
|
Ethernet176 176,177,178,179 etp23 23
|
||||||
Ethernet184 184,185,186,187 etp24 23
|
Ethernet184 184,185,186,187 etp24 24
|
||||||
Ethernet192 192,193,194,195 etp25 24
|
Ethernet192 192,193,194,195 etp25 25
|
||||||
Ethernet200 200,201,202,203 etp26 25
|
Ethernet200 200,201,202,203 etp26 26
|
||||||
Ethernet208 208,209,210,211 etp27 26
|
Ethernet208 208,209,210,211 etp27 27
|
||||||
Ethernet216 216,217,218,219 etp28 27
|
Ethernet216 216,217,218,219 etp28 28
|
||||||
Ethernet224 224,225,226,227 etp29 28
|
Ethernet224 224,225,226,227 etp29 29
|
||||||
Ethernet232 232,233,234,235 etp30 29
|
Ethernet232 232,233,234,235 etp30 30
|
||||||
Ethernet240 240,241,242,243 etp31 30
|
Ethernet240 240,241,242,243 etp31 31
|
||||||
Ethernet248 248,249,250,251 etp32 31
|
Ethernet248 248,249,250,251 etp32 32
|
||||||
Ethernet256 256,257,258,259 etp33 32
|
Ethernet256 256,257,258,259 etp33 33
|
||||||
Ethernet264 264,265,266,267 etp34 33
|
Ethernet264 264,265,266,267 etp34 34
|
||||||
Ethernet272 272,273,274,275 etp35 34
|
Ethernet272 272,273,274,275 etp35 35
|
||||||
Ethernet280 280,281,282,283 etp36 35
|
Ethernet280 280,281,282,283 etp36 36
|
||||||
Ethernet288 288,289,290,291 etp37 36
|
Ethernet288 288,289,290,291 etp37 37
|
||||||
Ethernet296 296,297,298,299 etp38 37
|
Ethernet296 296,297,298,299 etp38 38
|
||||||
Ethernet304 304,305,306,307 etp39 38
|
Ethernet304 304,305,306,307 etp39 39
|
||||||
Ethernet312 312,313,314,315 etp40 39
|
Ethernet312 312,313,314,315 etp40 40
|
||||||
Ethernet320 320,321,322,323 etp41 40
|
Ethernet320 320,321,322,323 etp41 41
|
||||||
Ethernet328 328,329,330,331 etp42 41
|
Ethernet328 328,329,330,331 etp42 42
|
||||||
Ethernet336 336,337,338,339 etp43 42
|
Ethernet336 336,337,338,339 etp43 43
|
||||||
Ethernet344 344,345,346,347 etp44 43
|
Ethernet344 344,345,346,347 etp44 44
|
||||||
Ethernet352 352,353,354,355 etp45 44
|
Ethernet352 352,353,354,355 etp45 45
|
||||||
Ethernet360 360,361,362,363 etp46 45
|
Ethernet360 360,361,362,363 etp46 46
|
||||||
Ethernet368 368,369,370,371 etp47 46
|
Ethernet368 368,369,370,371 etp47 47
|
||||||
Ethernet376 376,377,378,379 etp48 47
|
Ethernet376 376,377,378,379 etp48 48
|
||||||
Ethernet384 384,385,386,387 etp49 48
|
Ethernet384 384,385,386,387 etp49 49
|
||||||
Ethernet392 392,393,394,395 etp50 49
|
Ethernet392 392,393,394,395 etp50 50
|
||||||
Ethernet400 400,401,402,403 etp51 50
|
Ethernet400 400,401,402,403 etp51 51
|
||||||
Ethernet408 408,409,410,411 etp52 51
|
Ethernet408 408,409,410,411 etp52 52
|
||||||
Ethernet416 416,417,418,419 etp53 52
|
Ethernet416 416,417,418,419 etp53 53
|
||||||
Ethernet424 424,425,426,427 etp54 53
|
Ethernet424 424,425,426,427 etp54 54
|
||||||
Ethernet432 432,433,434,435 etp55 54
|
Ethernet432 432,433,434,435 etp55 55
|
||||||
Ethernet440 440,441,442,443 etp56 55
|
Ethernet440 440,441,442,443 etp56 56
|
||||||
Ethernet448 448,449,450,451 etp57 56
|
Ethernet448 448,449,450,451 etp57 57
|
||||||
Ethernet456 456,457,458,459 etp58 57
|
Ethernet456 456,457,458,459 etp58 58
|
||||||
Ethernet464 464,465,466,467 etp59 58
|
Ethernet464 464,465,466,467 etp59 59
|
||||||
Ethernet472 472,473,474,475 etp60 59
|
Ethernet472 472,473,474,475 etp60 60
|
||||||
Ethernet480 480,481,482,483 etp61 60
|
Ethernet480 480,481,482,483 etp61 61
|
||||||
Ethernet488 488,489,490,491 etp62 61
|
Ethernet488 488,489,490,491 etp62 62
|
||||||
Ethernet496 496,497,498,499 etp63 62
|
Ethernet496 496,497,498,499 etp63 63
|
||||||
Ethernet504 504,505,506,507 etp64 63
|
Ethernet504 504,505,506,507 etp64 64
|
||||||
|
@ -1,33 +1,33 @@
|
|||||||
# name lanes alias index
|
# name lanes alias index
|
||||||
Ethernet0 0,1,2,3,4,5,6,7 etp1 0
|
Ethernet0 0,1,2,3,4,5,6,7 etp1 1
|
||||||
Ethernet8 8,9,10,11,12,13,14,15 etp2 1
|
Ethernet8 8,9,10,11,12,13,14,15 etp2 2
|
||||||
Ethernet16 16,17,18,19,20,21,22,23 etp3 2
|
Ethernet16 16,17,18,19,20,21,22,23 etp3 3
|
||||||
Ethernet24 24,25,26,27,28,29,30,31 etp4 3
|
Ethernet24 24,25,26,27,28,29,30,31 etp4 4
|
||||||
Ethernet32 32,33,34,35,36,37,38,39 etp5 4
|
Ethernet32 32,33,34,35,36,37,38,39 etp5 5
|
||||||
Ethernet40 40,41,42,43,44,45,46,47 etp6 5
|
Ethernet40 40,41,42,43,44,45,46,47 etp6 6
|
||||||
Ethernet48 48,49,50,51,52,53,54,55 etp7 6
|
Ethernet48 48,49,50,51,52,53,54,55 etp7 7
|
||||||
Ethernet56 56,57,58,59,60,61,62,63 etp8 7
|
Ethernet56 56,57,58,59,60,61,62,63 etp8 8
|
||||||
Ethernet64 64,65,66,67,68,69,70,71 etp9 8
|
Ethernet64 64,65,66,67,68,69,70,71 etp9 9
|
||||||
Ethernet72 72,73,74,75,76,77,78,79 etp10 9
|
Ethernet72 72,73,74,75,76,77,78,79 etp10 10
|
||||||
Ethernet80 80,81,82,83,84,85,86,87 etp11 10
|
Ethernet80 80,81,82,83,84,85,86,87 etp11 11
|
||||||
Ethernet88 88,89,90,91,92,93,94,95 etp12 11
|
Ethernet88 88,89,90,91,92,93,94,95 etp12 12
|
||||||
Ethernet96 96,97,98,99,100,101,102,103 etp13 12
|
Ethernet96 96,97,98,99,100,101,102,103 etp13 13
|
||||||
Ethernet104 104,105,106,107,108,109,110,111 etp14 13
|
Ethernet104 104,105,106,107,108,109,110,111 etp14 14
|
||||||
Ethernet112 112,113,114,115,116,117,118,119 etp15 14
|
Ethernet112 112,113,114,115,116,117,118,119 etp15 15
|
||||||
Ethernet120 120,121,122,123,124,125,126,127 etp16 15
|
Ethernet120 120,121,122,123,124,125,126,127 etp16 16
|
||||||
Ethernet128 128,129,130,131,132,133,134,135 etp17 16
|
Ethernet128 128,129,130,131,132,133,134,135 etp17 17
|
||||||
Ethernet136 136,137,138,139,140,141,142,143 etp18 17
|
Ethernet136 136,137,138,139,140,141,142,143 etp18 18
|
||||||
Ethernet144 144,145,146,147,148,149,150,151 etp19 18
|
Ethernet144 144,145,146,147,148,149,150,151 etp19 19
|
||||||
Ethernet152 152,153,154,155,156,157,158,159 etp20 19
|
Ethernet152 152,153,154,155,156,157,158,159 etp20 20
|
||||||
Ethernet160 160,161,162,163,164,165,166,167 etp21 20
|
Ethernet160 160,161,162,163,164,165,166,167 etp21 21
|
||||||
Ethernet168 168,169,170,171,172,173,174,175 etp22 21
|
Ethernet168 168,169,170,171,172,173,174,175 etp22 22
|
||||||
Ethernet176 176,177,178,179,180,181,182,183 etp23 22
|
Ethernet176 176,177,178,179,180,181,182,183 etp23 23
|
||||||
Ethernet184 184,185,186,187,188,189,190,191 etp24 23
|
Ethernet184 184,185,186,187,188,189,190,191 etp24 24
|
||||||
Ethernet192 192,193,194,195,196,197,198,199 etp25 24
|
Ethernet192 192,193,194,195,196,197,198,199 etp25 25
|
||||||
Ethernet200 200,201,202,203,204,205,206,207 etp26 25
|
Ethernet200 200,201,202,203,204,205,206,207 etp26 26
|
||||||
Ethernet208 208,209,210,211,212,213,214,215 etp27 26
|
Ethernet208 208,209,210,211,212,213,214,215 etp27 27
|
||||||
Ethernet216 216,217,218,219,220,221,222,223 etp28 27
|
Ethernet216 216,217,218,219,220,221,222,223 etp28 28
|
||||||
Ethernet224 224,225,226,227,228,229,230,231 etp29 28
|
Ethernet224 224,225,226,227,228,229,230,231 etp29 29
|
||||||
Ethernet232 232,233,234,235,236,237,238,239 etp30 29
|
Ethernet232 232,233,234,235,236,237,238,239 etp30 30
|
||||||
Ethernet240 240,241,242,243,244,245,246,247 etp31 30
|
Ethernet240 240,241,242,243,244,245,246,247 etp31 31
|
||||||
Ethernet248 248,249,250,251,252,253,254,255 etp32 31
|
Ethernet248 248,249,250,251,252,253,254,255 etp32 32
|
||||||
|
@ -197,13 +197,13 @@ class Chassis(ChassisBase):
|
|||||||
|
|
||||||
def get_sfp(self, index):
|
def get_sfp(self, index):
|
||||||
"""
|
"""
|
||||||
Retrieves sfp represented by (0-based) index <index>
|
Retrieves sfp represented by (1-based) index <index>
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
index: An integer, the index (0-based) of the sfp to retrieve.
|
index: An integer, the index (1-based) of the sfp to retrieve.
|
||||||
The index should be the sequence of a physical port in a chassis,
|
The index should be the sequence of a physical port in a chassis,
|
||||||
starting from 0.
|
starting from 1.
|
||||||
For example, 0 for Ethernet0, 1 for Ethernet4 and so on.
|
For example, 1 for Ethernet0, 2 for Ethernet4 and so on.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
An object dervied from SfpBase representing the specified sfp
|
An object dervied from SfpBase representing the specified sfp
|
||||||
@ -212,7 +212,7 @@ class Chassis(ChassisBase):
|
|||||||
self.initialize_sfp()
|
self.initialize_sfp()
|
||||||
|
|
||||||
sfp = None
|
sfp = None
|
||||||
|
index -= 1
|
||||||
try:
|
try:
|
||||||
sfp = self._sfp_list[index]
|
sfp = self._sfp_list[index]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
@ -259,7 +259,7 @@ class sfp_event:
|
|||||||
|
|
||||||
for port in port_list:
|
for port in port_list:
|
||||||
logger.log_info("SFP on port {} state {}".format(port, sfp_state))
|
logger.log_info("SFP on port {} state {}".format(port, sfp_state))
|
||||||
port_change[port] = sfp_state
|
port_change[port+1] = sfp_state
|
||||||
found += 1
|
found += 1
|
||||||
|
|
||||||
return found != 0
|
return found != 0
|
||||||
|
Loading…
Reference in New Issue
Block a user