Added API for getting and setting network configuration