CLI: use the unified ports API

Signed-off-by: Guillermo Ontanon <guillermo@midokura.jp>