Implemented get_port.

get_port done. If port were not found, return {"ret":0, "port":None}.

Signed-off-by: Min Chen <minchnew@gmail.com>