Hack to update degree port on portmapping