sonic-buildimage/device/arista/x86_64-arista_7060_cx32s/platform_reboot
Sagar Balani 559132103e
Address upstream comments (#11)
* Remove all non bfn specific changes from upstream PR
2018-06-20 13:28:43 -07:00

19 lines
392 B
Python
Executable File

#!/usr/bin/env python
# Copyright (c) 2018 Arista Networks, Inc. All rights reserved.
# Arista Networks, Inc. Confidential and Proprietary.
# Reboot script for 7060CX-32
from __future__ import print_function
import smbus
def main():
print( "Rebooting" )
bus = smbus.SMBus( 1 )
bus.write_byte_data( 0x23, 0x04, 0xde )
print( "REBOOTED" )
if __name__ == "__main__":
main()