def METHOD_NAME(self, port_num):
    QSFP_RESET_REGISTER_DEVICE_FILE = "/sys/class/swps/port"+str(port_num)+"/reset"
    # Check for invalid port_num
    if port_num < self.port_start or port_num > self.port_end:
        return False
    if port_num < self.qsfp_port_start or port_num > self.qsfp_port_end:
        print("\nError:SFP's don't support this property")
        return False
    try:
        reg_file = open(QSFP_RESET_REGISTER_DEVICE_FILE, "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(QSFP_RESET_REGISTER_DEVICE_FILE, "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