Added calls to register macs to networks when creating ports