def METHOD_NAME(self, port_num):
    if port_num not in self.qsfp_ports:
        return False
    reset_path = '/sys/bus/i2c/devices/8-0076/sfp'+str(port_num+1)+'_reset'
    try:
        file = open(reset_path, "r+")
    except IOError as e:
        print("Error: unable to open file: %s" % str(e))
        return False
    file.seek(0)
    file.write(str(2))
    file.close()
    # Sleep 1 second to allow it to settle
    time.sleep(1)
    try:
        file = open(reset_path, "r+")
    except IOError as e:
        print("Error: unable to open file: %s" % str(e))
        return False
    file.seek(0)
    file.write(str(1))
    file.close()
    return True