Add network, port, and MAC addr to metadata. Multiple methods to retrieve network ID