Added instance_add_portname methion.