c1e37a6be9
Adds a platform_reboot script for 7050QX-32, 7050QX-32S and 7060CX-32S. This allow a proper cold reboot to happen.
19 lines
392 B
Python
Executable File
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()
|