Fix bug in get_port and get_ports in N1kv plugin.

Change-Id: Ic3b354fdb012794f16a2110bfaf0017f0ef82f81