Add the NetworkAgent to the container.