def METHOD_NAME(self, port_num):
    # Check for invalid port_num
    if port_num < self.qsfp_port_start or port_num > self.port_end:
        return False
    try:
        reg_file = open("/sys/class/gpio/gpio"+str((port_num-self.qsfp_port_start)*4+32)+"/value", "r+")
    except IOError as e:
        print("Error: unable to open file: %s" % str(e))
        return False
    reg_value = 0
    reg_file.write(hex(reg_value))
    reg_file.close()
    # Sleep 2 second to allow it to settle
    time.sleep(2)
    # Flip the value back write back to the register to take port out of reset
    try:
        reg_file = open("/sys/class/gpio/gpio"+str((port_num-self.qsfp_port_start)*4+32)+"/value", "r+")
    except IOError as e:
        print("Error: unable to open file: %s" % str(e))
        return False
    reg_value = 1
    reg_file.write(hex(reg_value))
    reg_file.close()
    return True