Adding a new generic write_network plugin define

Here's the write_network define.