Fix add subnet/gateway. closes #2269