Sridhar Pitchai d7683a9909 Platform x86-64-cel-redstone-xp
ONLP porting.
        This patch has ONLP APIs for sysi, sfp, fan, psu, led and thermals.
    onlpdump log:
root@localhost:~# onlpdump
   System Information: = {
       Product Name: Redstone-XP D2060
       Part Number: R0854-F1004-01
       Serial Number: D2060B2F105A14AP000001
       MAC: 00:e0:ec:33:5c:dc
       MAC Range: 73
       Manufacturer: CELESTICA
       Manufacture Date: 10/21/2015 12:19:06
       Vendor: CELESTICA
       Platform Name: RANGELEY
       Device Version: 10
       Label Revision: Redstone-XP
       Country Code: CHN
       Diag Version: 1.2.8
       Service Tag: LB
       ONIE Version: 2014.08
   }
   psu @ 1 = {
       Description: PSU-1
       Model:  NULL
       SN:     NULL
       Status: 0x00000001 [ PRESENT ]
       Caps:   0x00000000
       Vin:    117620
       Vout:   11920
       Iin:    760
       Iout:   5810
       Pin:    90120
       Pout:   69250
   }
   psu @ 2 = {
       Description: PSU-2
       Model:  NULL
       SN:     NULL
       Status: 0x00000005 [ PRESENT,UNPLUGGED ]
       Caps:   0x00000000
       Vin:    0
       Vout:   0
       Iin:    0
       Iout:   0
       Pin:    0
       Pout:   0
   }
   led @ 1 = {
       Description: Chassis System LED(DIAG LED)
       Status: 0x00000005 [ PRESENT,ON ]
       Caps:   0x00011001 [ ON_OFF,ORANGE,GREEN ]
       Mode: ON
       Char:
   }
   led @ 2 = {
       Description: Chassis FAN(1) LED
       Status: 0x00000005 [ PRESENT,ON ]
       Caps:   0x00411001 [ ON_OFF,ORANGE,GREEN,AUTO ]
       Mode: ON
       Char:
   }
   led @ 3 = {
       Description: Chassis FAN(2) LED
       Status: 0x00000005 [ PRESENT,ON ]
       Caps:   0x00411001 [ ON_OFF,ORANGE,GREEN,AUTO ]
       Mode: ON
       Char:
   }
   led @ 4 = {
       Description: Chassis FAN(3) LED
       Status: 0x00000005 [ PRESENT,ON ]
       Caps:   0x00411001 [ ON_OFF,ORANGE,GREEN,AUTO ]
       Mode: ON
       Char:
   }
   led @ 5 = {
       Description: Chassis FAN(4) LED
       Status: 0x00000005 [ PRESENT,ON ]
       Caps:   0x00411001 [ ON_OFF,ORANGE,GREEN,AUTO ]
       Mode: ON
       Char:
   }
   led @ 6 = {
       Description: Chassis FAN(5) LED
       Status: 0x00000005 [ PRESENT,ON ]
       Caps:   0x00411001 [ ON_OFF,ORANGE,GREEN,AUTO ]
       Mode: ON
       Char:
   }
   led @ 7 = {
       Description: Chassis FAN(6) LED
       Status: 0x00000005 [ PRESENT,ON ]
       Caps:   0x00411001 [ ON_OFF,ORANGE,GREEN,AUTO ]
       Mode: ON
       Char:
   }
   led @ 8 = {
       Description: Chassis FAN(7) LED
       Status: 0x00000005 [ PRESENT,ON ]
       Caps:   0x00411001 [ ON_OFF,ORANGE,GREEN,AUTO ]
       Mode: ON
       Char:
   }
   led @ 9 = {
       Description: Chassis FAN(8) LED
       Status: 0x00000005 [ PRESENT,ON ]
       Caps:   0x00411001 [ ON_OFF,ORANGE,GREEN,AUTO ]
       Mode: ON
       Char:
   }
   led @ 10 = {
       Description: Chassis PSU(1) LED
       Status: 0x00000005 [ PRESENT,ON ]
       Caps:   0x00411001 [ ON_OFF,ORANGE,GREEN,AUTO ]
       Mode: ON
       Char:
   }
   led @ 11 = {
       Description: Chassis PSU(2) LED
       Status: 0x00000005 [ PRESENT,ON ]
       Caps:   0x00411001 [ ON_OFF,ORANGE,GREEN,AUTO ]
       Mode: ON
       Char:
   }
   thermal @ 1 = {
       Description: Chassis Thermal (Rear)
       Status: 0x00000001 [ PRESENT ]
       Caps:   0x0000000f [ GET_TEMPERATURE,GET_WARNING_THRESHOLD,GET_ERROR_THRESHOLD,GET_SHUTDOWN_THRESHOLD ]
       Temperature: 36
       thresholds = {
           Warning: 45000
           Error: 55000
           Shutdown: 60000
       }
   }
   thermal @ 2 = {
       Description: BCM SOC Thermal sensor
       Status: 0x00000001 [ PRESENT ]
       Caps:   0x0000000f [ GET_TEMPERATURE,GET_WARNING_THRESHOLD,GET_ERROR_THRESHOLD,GET_SHUTDOWN_THRESHOLD ]
       Temperature: 35
       thresholds = {
           Warning: 45000
           Error: 55000
           Shutdown: 60000
       }
   }
   thermal @ 3 = {
       Description: CPU Core
       Status: 0x00000001 [ PRESENT ]
       Caps:   0x0000000f [ GET_TEMPERATURE,GET_WARNING_THRESHOLD,GET_ERROR_THRESHOLD,GET_SHUTDOWN_THRESHOLD ]
       Temperature: 37
       thresholds = {
           Warning: 45000
           Error: 55000
           Shutdown: 60000
       }
   }
   thermal @ 4 = {
       Description: Chassis Thermal Sensor (Front)
       Status: 0x00000001 [ PRESENT ]
       Caps:   0x0000000f [ GET_TEMPERATURE,GET_WARNING_THRESHOLD,GET_ERROR_THRESHOLD,GET_SHUTDOWN_THRESHOLD ]
       Temperature: 40
       thresholds = {
           Warning: 45000
           Error: 55000
           Shutdown: 60000
       }
   }
   thermal @ 5 = {
       Description: PSU-1 Thermal Sensor
       Status: 0x00000001 [ PRESENT ]
       Caps:   0x0000000f [ GET_TEMPERATURE,GET_WARNING_THRESHOLD,GET_ERROR_THRESHOLD,GET_SHUTDOWN_THRESHOLD ]
       Temperature: 37
       thresholds = {
           Warning: 45000
           Error: 55000
           Shutdown: 60000
       }
   }
   thermal @ 6 = {
       Description: PSU-2 Thermal Sensor
       Status: 0x00000001 [ PRESENT ]
       Caps:   0x0000000f [ GET_TEMPERATURE,GET_WARNING_THRESHOLD,GET_ERROR_THRESHOLD,GET_SHUTDOWN_THRESHOLD ]
       Temperature: 35
       thresholds = {
           Warning: 45000
           Error: 55000
           Shutdown: 60000
       }
   }
   fan @ 1 = {
       Description: Chassis Fan 1
       Status: 0x00000005 [ PRESENT,B2F ]
       Caps:   0x00000000
       RPM:    8998
       Per:    40
       Model:  NULL
       SN:     NULL
   }
   fan @ 2 = {
       Description: Chassis Fan 2
       Status: 0x00000005 [ PRESENT,B2F ]
       Caps:   0x00000000
       RPM:    7710
       Per:    40
       Model:  NULL
       SN:     NULL
   }
   fan @ 3 = {
       Description: Chassis Fan 3
       Status: 0x00000005 [ PRESENT,B2F ]
       Caps:   0x00000000
       RPM:    9340
       Per:    40
       Model:  NULL
       SN:     NULL
   }
   fan @ 4 = {
       Description: Chassis Fan 4
       Status: 0x00000005 [ PRESENT,B2F ]
       Caps:   0x00000000
       RPM:    8090
       Per:    40
       Model:  NULL
       SN:     NULL
   }
   fan @ 5 = {
       Description: Chassis Fan 5
       Status: 0x00000005 [ PRESENT,B2F ]
       Caps:   0x00000000
       RPM:    9429
       Per:    40
       Model:  NULL
       SN:     NULL
   }
   fan @ 6 = {
       Description: Chassis Fan 6
       Status: 0x00000005 [ PRESENT,B2F ]
       Caps:   0x00000000
       RPM:    7992
       Per:    40
       Model:  NULL
       SN:     NULL
   }
   fan @ 7 = {
       Description: Chassis Fan 7
       Status: 0x00000005 [ PRESENT,B2F ]
       Caps:   0x00000000
       RPM:    9102
       Per:    40
       Model:  NULL
       SN:     NULL
   }
   fan @ 8 = {
       Description: Chassis Fan 8
       Status: 0x00000005 [ PRESENT,B2F ]
       Caps:   0x00000000
       RPM:    7927
       Per:    40
       Model:  NULL
       SN:     NULL
   }
   fan @ 9 = {
       Description: PSU Fan 1
       Status: 0x00000009 [ PRESENT,F2B ]
       Caps:   0x00000000
       RPM:    8848
       Per:    50
       Model:  NULL
       SN:     NULL
   }
   fan @ 10 = {
       Description: PSU Fan 2
       Status: 0x00000009 [ PRESENT,F2B ]
       Caps:   0x00000000
       RPM:    4700
       Per:    47
       Model:  NULL
       SN:     NULL
   }

SFPs:
  Presence Bitmap: 1 2 35 36
  RX_LOS Bitmap: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54

Port 01: Present, Status = 0x00000000
eeprom:
  0000: 03 04 22 00 00 00 08 00 00 00 00 01 0d 00 00 00
  0010: 00 00 64 00 4f 45 4d 20 20 20 20 20 20 20 20 20
  0020: 20 20 20 20 00 00 17 6a 47 4c 43 2d 54 2d 43 55
  0030: 52 56 20 20 20 20 20 20 42 31 20 20 00 00 00 dc
  0040: 00 1a 00 00 58 41 4e 58 30 42 44 37 35 58 30 30
  0050: 33 32 30 20 31 34 31 30 30 32 20 20 00 00 00 50
  0060: 00 00 11 d4 0e 0e 75 5f eb 3a c6 32 2d f7 e9 dc
  0070: 20 57 b5 00 00 00 00 00 00 00 00 00 c7 d9 08 00
  0080: 43 4e 53 38 54 55 54 41 41 42 33 30 2d 31 34 31
  0090: 30 2d 30 33 56 30 33 20 49 fb 46 00 00 00 00 26
  00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 aa aa
  00c0: 47 4c 43 2d 54 20 20 20 20 20 20 20 20 20 20 20
  00d0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 97
  00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00f0: 00 00 00 00 00 00 00 00 00 40 00 40 00 00 00 00
Port 02: Present, Status = 0x00000004 [ RX_LOS ]
eeprom:
  0000: 03 04 22 00 00 00 08 00 00 00 00 01 0d 00 00 00
  0010: 00 00 64 00 4f 45 4d 20 20 20 20 20 20 20 20 20
  0020: 20 20 20 20 00 00 17 6a 47 4c 43 2d 54 2d 43 55
  0030: 52 56 20 20 20 20 20 20 42 31 20 20 00 00 00 dc
  0040: 00 1a 00 00 58 41 4e 54 58 32 32 38 37 32 20 20
  0050: 20 20 20 20 31 34 30 38 31 39 20 20 00 00 00 e9
  0060: 00 00 11 7e 47 e6 43 7e 15 ef 8b 4b b1 7f 88 ba
  0070: 78 eb 0b 00 00 00 00 00 00 00 00 00 24 fb c9 00
  0080: 43 4e 53 38 54 55 54 41 41 42 33 30 2d 31 34 31
  0090: 30 2d 30 33 56 30 33 20 49 fb 46 00 00 00 00 26
  00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 aa aa
  00c0: 47 4c 43 2d 54 20 20 20 20 20 20 20 20 20 20 20
  00d0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 97
  00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00f0: 00 00 00 00 00 00 00 00 00 40 00 40 00 00 00 00
Port 03: Missing.
Port 04: Missing.
Port 05: Missing.
Port 06: Missing.
Port 07: Missing.
Port 08: Missing.
Port 09: Missing.
Port 10: Missing.
Port 11: Missing.
Port 12: Missing.
Port 13: Missing.
Port 14: Missing.
Port 15: Missing.
Port 16: Missing.
Port 17: Missing.
Port 18: Missing.
Port 19: Missing.
Port 20: Missing.
Port 21: Missing.
Port 22: Missing.
Port 23: Missing.
Port 24: Missing.
Port 25: Missing.
Port 26: Missing.
Port 27: Missing.
Port 28: Missing.
Port 29: Missing.
Port 30: Missing.
Port 31: Missing.
Port 32: Missing.
Port 33: Missing.
Port 34: Missing.
Port 35: Present, Status = 0x00000000
eeprom:
  0000: 03 04 21 00 00 00 00 00 04 00 00 00 67 00 00 00
  0010: 00 00 03 00 4f 45 4d 20 20 20 20 20 20 20 20 20
  0020: 20 20 20 20 00 00 40 20 53 46 50 2d 48 31 30 47
  0030: 42 2d 43 55 33 4d 20 20 30 33 20 20 01 00 00 e8
  0040: 00 00 00 00 43 53 53 33 31 47 35 31 39 32 39 20
  0050: 20 20 20 20 31 36 30 35 30 31 20 20 00 00 00 ab
  0060: 81 00 11 be cd f7 59 20 a9 96 69 41 e7 88 cd da
  0070: 20 41 3b 00 00 00 00 00 00 00 00 00 9c 16 a0 00
  0080: 43 4f 50 51 41 41 36 4a 41 42 33 37 2d 30 39 36
  0090: 31 2d 30 33 56 30 33 20 01 00 46 00 00 00 00 cf
  00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00c0: 53 46 50 2d 48 31 30 47 42 2d 43 55 33 4d 20 20
  00d0: 20 20 20 20 30 39 00 00 00 00 00 00 00 00 00 b6
  00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Port 36: Present, Status = 0x00000000
eeprom:
  0000: 03 04 21 00 00 00 00 00 04 00 00 00 67 00 00 00
  0010: 00 00 03 00 4f 45 4d 20 20 20 20 20 20 20 20 20
  0020: 20 20 20 20 00 00 40 20 53 46 50 2d 48 31 30 47
  0030: 42 2d 43 55 33 4d 20 20 30 33 20 20 01 00 00 e8
  0040: 00 00 00 00 43 53 53 33 31 47 35 31 39 32 32 20
  0050: 20 20 20 20 31 36 30 35 30 31 20 20 00 00 00 a4
  0060: 81 00 11 41 4f f5 2c 81 28 2e 9a d8 43 78 e9 40
  0070: 65 4e 77 00 00 00 00 00 00 00 00 00 ec dc bd 00
  0080: 43 4f 50 51 41 41 36 4a 41 42 33 37 2d 30 39 36
  0090: 31 2d 30 33 56 30 33 20 01 00 46 00 00 00 00 cf
  00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00c0: 53 46 50 2d 48 31 30 47 42 2d 43 55 33 4d 20 20
  00d0: 20 20 20 20 30 39 00 00 00 00 00 00 00 00 00 b6
  00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Port 37: Missing.
Port 38: Missing.
Port 39: Missing.
Port 40: Missing.
Port 41: Missing.
Port 42: Missing.
Port 43: Missing.
Port 44: Missing.
Port 45: Missing.
Port 46: Missing.
Port 47: Missing.
Port 48: Missing.
Port 49: Missing.
Port 50: Missing.
Port 51: Missing.
Port 52: Missing.
Port 53: Missing.
Port 54: Missing.
root@localhost:~#
root@localhost:~#
2016-10-25 11:56:23 -07:00
2016-10-25 11:56:23 -07:00
2016-10-12 18:41:45 +00:00
2016-02-12 18:49:46 -08:00
2016-05-02 14:00:13 -07:00
2015-12-29 07:50:24 -08:00
2015-12-15 18:37:40 -08:00
2016-04-28 17:03:51 -07:00

Open Network Linux

Check out the main/offical website at http://opennetlinux.org .

Open Network Linux (ONL) is a Linux distribution for bare metal switches. ONL builds an ONIE-compatible installer and a switch image which contains a complete Debian distribution with added drivers and configuration for running on bare metal switches.

Software License

Licenses for the software are described under the LICENSE file. Download or use of the software implies consent.

Documentation

Please see the docs directory for additional information.

![alt text] (https://scan.coverity.com/projects/8655/badge.svg "Coverity Scan Build Status")

Description
No description provided
Readme EPL-1.0 98 MiB
Languages
C 92.6%
Python 4.5%
Makefile 2.1%
Shell 0.7%
Dockerfile 0.1%