New APIs: set-network and get-network to enable network support.